/* ///////////////////////// START public/css/global.css (MODIFIED) ///////////////////////// */
/* MODIFIED (version 2, Figma v05): Info accent #bdbbc9, stack sizes, caption + details panel tokens,
   900ms open / morph timing (uff.cfda.com reference) */
/* MODIFIED (v9): global.css is now THE token file. Every colour, font, type style, spacer,
   padding, size, radius, z-index, motion value and shadow lives here, and every other
   stylesheet only uses these variables (no raw px / hex values outside this file).
   Names follow the Figma file (text styles Header / Title / Title(M) / Paragraph(B) /
   Paragraph, colour variables Light/RWS-*, effect styles shadow_s / shadow_m / shadow_L)
   and the Figma component layers (tab-item > container > label, badge > title).
   js/global.js no longer writes colours / type to :root — it READS the motion + layout
   tokens from here (RwsGlobal.apply()) so JS and CSS share one source.
   Old --rws-* names are kept as aliases at the bottom so nothing that used them breaks. */
/* MODIFIED (v8): one set of font sizes for every screen + device (page no longer scaled). */
/* MODIFIED (v5): NEW --rws-text-size / --rws-text-line. */
/* MODIFIED (v3): page background is now white (--rws-page-bg) */
/* NEW FILE: public/css/global.css — base reset + page defaults. */

*, *::before, *::after { box-sizing: border-box; }

/* ///////////////////////// START tokens (NEW v9) ///////////////////////// */
:root {
  /* ---------------------------------------------------------------
     Colors (Figma variables: Light/RWS-*, UTILITY/RWS-UTL-*)
     --------------------------------------------------------------- */
  --color-ink-e06: #151615;          /* Light/RWS-INK-E06 — text, dark pills, dark buttons */
  --color-ink-e03: #222c29;          /* Light/RWS-INK-E03 — secondary ink */
  --color-dark-e01: #2e3c38;         /* Dark/RWS-E01 — badge text */
  --color-black: #000000;            /* headings, outlines */
  --color-white: #ffffff;            /* drawer sheet, light buttons */
  --color-bcg-e01: #fbfbfb;          /* Light/RWS-BCG-E01 — page, nav tray, card tags */
  --color-bse-e00: #fdfdff;          /* Light/RWS-BSE-E00 — heading band */
  --color-bse-e01: #fafbff;          /* Light/RWS-BSE-E01 — title objects */
  --color-bse-e04: #f1f2f7;          /* Light/RWS-BSE-E04 — tabs, chips, pills, status */
  --color-bse-e05: #f1f3f6;          /* Light/RWS-BSE-E05 — tab outline, text on dark */
  --color-bse-e06: #fbfcfd;          /* text on the dark hover pill */
  --color-utl-y03: #f2c140;          /* UTILITY/RWS-UTL-Y03 — Work accent */
  --color-utl-r03: #e94523;          /* Clients accent */
  --color-utl-b03: #399ced;          /* Books accent */
  /* ///////////////////////// START info accent (NEW version 2) ///////////////////////// */
  --color-utl-v03: #bdbbc9;          /* NEW (version 2): Info accent (Figma Nav03) */
  --color-caption: #151615;          /* NEW (version 2): gallery caption box (Figma 468x75, #151615) */
  --color-caption-ink: #edecf4;      /* NEW (version 2): caption text */
  --color-panel: #f1f1f1;            /* NEW (version 2): project Details panel frame */
  --color-panel-inner: #f8f8fa;      /* NEW (version 2): project Details panel sheet */
  --color-explore-pill: #fafafa;     /* NEW (version 2.14): Explore card Figma pill (Figma 322:52731) */
  --color-explore-pill-ink: #091110; /* NEW (version 2.14): its text */
  --color-stack-panel: #f1f2f7;      /* NEW (version 2): Info year cards */
  --opacity-pill-hover: 0.85;        /* NEW (version 2): client pill hover on work cards */
  /* ///////////////////////// END info accent (NEW version 2) ///////////////////////// */
  --color-utl-g03: #1ed760;          /* status dot */
  --color-hover: #e6e8ef;            /* chip / tab hover */
  --color-related: #dde2e9;          /* chip related to the hovered card */
  --color-empty: #eceef2;            /* card without an image */
  --color-close: #f8f8f7;            /* light round close button */
  --color-close-dark: #1b1b1b;       /* dark round close button */
  --color-explore: #f8f8fa;          /* "Explore the full project" panel */
  --color-explore-dark: #010320;     /* Figma file preview backing */
  --color-logo-card: #fafafa;        /* client logo card */
  --color-book-card: #f1f1f1;        /* book card */
  --color-book-sheet: #e9e9ee;       /* book sheet before its image loads */
  --color-book-page: #1f2523;        /* book prototype page */
  --color-industry: #1c1e1c;         /* industry chips */
  --color-hero: rgba(120, 167, 255, 0.98); /* hero card backing */
  --color-focus: #3b6cff;            /* keyboard focus ring */
  --color-scrim-light: rgba(255, 255, 255, 0.92); /* light close button over images */

  /* ---------------------------------------------------------------
     Fonts (Figma: Helvetica Neue)
     --------------------------------------------------------------- */
  --font: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
  --font-thin: "HelveticaNeue-Thin", var(--font);      /* was a 2nd --font-light in the brief */
  --font-light: "HelveticaNeue-Light", var(--font);
  --font-regular: "HelveticaNeue-Regular", var(--font);
  --font-medium: "HelveticaNeue-Medium", var(--font);
  --font-bold: "HelveticaNeue-Bold", var(--font);
  --bold: 700;                       /* brief had `bold` — numeric so it works as a font-weight */
  --medium: 500;                     /* brief had `medium` (not a valid weight) */
  --regular: 400;                    /* brief had `regular` (not a valid weight) */

  /* Header — Figma text style "Header": 75 / 70, -1.5% */
  --header-font-family: var(--font-regular);
  --header-font-size: 75px;
  --header-line-height: 70px;
  --header-font-weight: 400;
  --header-font-style-reg: normal;
  --header-letter-spacing: -1.125px;

  /* Title — Figma "Title": 50 / 45, -3% */
  --title-font-family: var(--font);
  --title-font-size: 50px;
  --title-line-height: 45px;
  --title-font-weight: 400;
  --title-font-style: normal;
  --title-letter-spacing: -1.5px;

  /* Title(B) — bold Title */
  --titleB-font-family: var(--font);
  --titleB-font-size: 50px;
  --titleB-line-height: 45px;
  --titleB-font-weight: var(--bold); /* brief: 400 + style bold -> weight 700 */
  --titleB-font-style: normal;
  --titleB-letter-spacing: -1.5px;

  /* Title(M) — Figma "Title(M)": Medium 43 / 70, -3% (count next to headings) */
  --titleM-font-family: var(--font);
  --titleM-font-size: 43px;
  --titleM-line-height: 70px;
  --titleM-font-weight: var(--medium);
  --titleM-font-style: normal;
  --titleM-letter-spacing: -1.29px;

  /* Paragraph(B) — Figma "Paragraph(B)": Bold 12 / 15 */
  --paragraphB-font-family: var(--font);
  /* ///////////////////////// START small font (MODIFIED version 2.9) ///////////////////////// */
  --paragraphB-font-size: 10px;         /* MODIFIED (version 2.9): small font 12px -> 10px */
  /* ///////////////////////// END small font (MODIFIED version 2.9) ///////////////////////// */
  --paragraphB-line-height: 15px;
  --paragraphB-font-weight: var(--bold);
  --paragraphB-font-style: normal;

  /* Paragraph — Figma "Paragraph": Regular 12 / 15 (chips, body, tables) */
  --paragraph-font-family: var(--font); /* brief had var(--font-family) (undefined) */
  /* ///////////////////////// START small font (MODIFIED version 2.9) ///////////////////////// */
  --paragraph-font-size: 10px;          /* MODIFIED (version 2.9): small font 12px -> 10px (chips, pills, tags, body) */
  /* ///////////////////////// END small font (MODIFIED version 2.9) ///////////////////////// */
  --paragraph-line-height: 15px;
  --paragraph-font-weight: 400;
  --paragraph-font-style: normal;

  /* Label — 14 / 15 used by tabs, client pills, subtitles, status (Nav02 / Clients pill) */
  --label-font-family: var(--font);
  /* ///////////////////////// START small font (MODIFIED version 2.9) ///////////////////////// */
  --label-font-size: 10px;              /* MODIFIED (version 2.9): 14px -> 10px (tabs, client pills, subtitles, status) */
  /* ///////////////////////// END small font (MODIFIED version 2.9) ///////////////////////// */
  --label-line-height: 15px;
  --label-font-weight: 400;
  --label-count-letter-spacing: -0.28px;

  /* Display — "Explore the full project" (84px in Figma, no text style) */
  --display-font-size: 84px;
  --display-line-height: 60px;
  --display-letter-spacing: -2.52px;

  /* ---------------------------------------------------------------
     Spacers (multiples of 5, plus the 1px / 3px gaps Figma uses)
     --------------------------------------------------------------- */
  --spacer-hair: 1px;                /* gap-px between tabs / chips */
  --spacer-xs: 3px;                  /* gap-[3px] label gap, tag rows */
  --spacer01: 5px;
  --spacer02: 10px;
  --spacer03: 15px;
  --spacer04: 20px;
  --spacer05: 25px;
  --spacer06: 30px;
  --spacer07: 35px;
  --spacer08: 40px;
  --spacer09: 45px;
  --spacer10: 50px;
  --spacer11: 60px;
  --spacer12: 75px;
  --spacer13: 100px;
  --spacer14: 125px;
  --spacer15: 150px;
  --spacer16: 180px;
  --spacer17: 300px;

  /* ---------------------------------------------------------------
     Paddings (Figma layer names) — tags / buttons / tabs / labels
     --------------------------------------------------------------- */
  --padding-tab: var(--spacer01) var(--spacer02);                   /* MODIFIED (version 2.10, Figma Nav03 295:36673): tab-item 5 / 10 -> 40px tab (was 10 / 15) */
  --padding-tab-container: var(--spacer01) var(--spacer02);         /* container: 5 / 10 */
  --padding-label: var(--spacer01) var(--spacer-xs);                /* label: 5 / 3 */
  --padding-badge: var(--spacer02);                                 /* badge-expertise: 10 */
  --padding-badge-title: var(--spacer02) var(--spacer03);           /* title: 10 / 15 */
  --padding-chip-x: calc(var(--spacer01) + var(--spacer03));        /* MODIFIED (version 2.10): 20 = badge 5 + title 15 (was 25) — every tag */
  --padding-chip-y: calc((var(--size-chip) - var(--paragraph-line-height)) / 2); /* 17 -> 49px chip */
  --padding-pill: var(--spacer03) var(--spacer04);                  /* client pill: 15 / 20 */
  --padding-pill-tag: var(--spacer02) var(--spacer04);              /* tag-label: 10 / 20 */
  --padding-status: var(--spacer03) var(--spacer04);                /* status pill */
  --padding-button: 0 var(--spacer08);                              /* Explore File button */
  --padding-chip-small: var(--spacer-hair) var(--spacer01);         /* drawer dark chips */
  --padding-chip-icon: var(--spacer-hair) var(--spacer01) var(--spacer-hair) var(--spacer-hair); /* tools chip */
  --padding-person: 2px var(--spacer01);                            /* person chip */
  --padding-card-details: var(--spacer01);                          /* card title row inset */
  --padding-drawer: var(--spacer05);                                /* drawer bar + body */
  --padding-flip: 6px;                                              /* Flip Phone label */

  /* ---------------------------------------------------------------
     Sizes
     --------------------------------------------------------------- */
  --size-nav: 60px;                  /* nav bar */
  --size-tab: 40px;                  /* MODIFIED (version 2.10): 40px standard (was 50) — page tabs */
  --size-chip: 40px;                 /* MODIFIED (version 2.10): 40px standard for every tag (was 49) — badge-expertise / badge-sector */
  --size-button: 50px;               /* round +/chevron buttons */
  --size-close: 49px;                /* round close button */
  --size-close-frame: 79px;          /* close button frame */
  --size-close-mobile: 70px;
  --size-icon-l: 30px;               /* icons inside round buttons */
  --size-icon: 20px;                 /* logos, tool icons */
  --size-icon-s: 15px;
  --size-icon-xs: 10px;              /* arrow glyph, status dot */
  --size-dot: 10px;
  --size-logo: 220px;                /* logo on client cards */
  /* ///////////////////////// START stack sizes (NEW version 2) ///////////////////////// */
  --size-stack: 625px;               /* NEW (version 2): Clients / Info / Books stack box */
  --size-stack-title-gap: 65px;      /* NEW (version 2): stack -> title pill */
  --size-stack-title: 60px;          /* NEW (version 2): title pill row */
  --size-caption-w: 468px;           /* NEW (version 2): gallery caption box width */
  --size-header-bar: 80px;           /* NEW (version 2): project page top header bar */
  --size-bio-max: 1870px;            /* MODIFIED (version 2.2): Figma Info bio is 1870 wide (was 1800) */
  --bio-letter-spacing: -3px;
  --size-related-logo: 281px;        /* NEW (version 2.23, Figma 448:344469): logo in a Related brand cell */
  --size-brand-logo: 188px;          /* NEW (version 2.15, Figma Brands 352:64517): logo box in a brand cell */
  --size-card-pill: 40px;            /* NEW (version 2.6): card client pill + tag pills (Figma 295:381899) */
  --size-headline-max: 750px;        /* NEW (version 2.2): Details headline column */
  --size-related-row: 562px;         /* NEW (version 2.2): same-brand thumbnails row */
  --padding-related: 12.5px var(--spacer05);  /* NEW (version 2.2) */        /* NEW (version 2.2): Figma Info bio + Details / Credits titles (50 / 45, -3) */
  --size-bio-max-mobile: 760px;      /* NEW (version 2) */
  --radius-caption: 4px;             /* NEW (version 2): caption box corners */
  --radius-panel: 30px;              /* NEW (version 2): Details panel corners */
  --padding-caption: 10px 15px;      /* NEW (version 2) */
  --padding-panel: 25px 0 125px;     /* NEW (version 2): Details panel inner sheet */
  /* ///////////////////////// END stack sizes (NEW version 2) ///////////////////////// */
  --size-heading: 125px;             /* board heading band */
  --size-drawer-bar: 100px;          /* project bar */
  --size-drawer-bar-mobile: 80px;
  --size-book-sheet-w: 750px;        /* book sheets (Figma 750 x 421.875) */
  --size-book-sheet-h: 421.875px;
  --size-explore-button: 70px;
  --size-text-max: 900px;            /* description measure */
  --size-value-max: 700px;           /* details value measure */
  --size-pair-min-w: 500px;          /* gallery pair */
  --size-pair-min-h: 750px;
  --content-top: 150px;              /* board starts below this */
  /* ///////////////////////// START mobile tokens (MODIFIED version 2.25) ///////////////////////// */
  /* Figma mobile frames 359:56830 / 361:326338 / 484:58012 (402 x 874) — phones only */
  --content-top-mobile: 195px;       /* MODIFIED (version 2.25): heading band starts here (was 75px) */
  --size-heading-mobile: 104px;      /* NEW (version 2.25): "Work 32" band (25 + 54 + 25) */
  --mobile-gutter: 15px;             /* NEW (version 2.25): side padding of the mobile board */
  --mobile-gap-x: 15px;              /* NEW (version 2.25): between Work cards in a row */
  --mobile-gap-y: 90px;              /* NEW (version 2.25): between Work card rows */
  --mobile-board-width: 2485px;      /* NEW (version 2.25): Work rows wrap at this width (pan sideways) */
  --mobile-status-inset: 5px;        /* NEW (version 2.25): "Available for work" pill, top-LEFT on phones */
  /* ///////////////////////// END mobile tokens (MODIFIED version 2.25) ///////////////////////// */
  --stage-width: 1920px;             /* Figma frame width */
  --width-chip-row: 70%;             /* desktop chip row never covers the tabs */
  --size-figma-icon-w: 13px;         /* Figma file icon in the Explore pill */
  --size-placeholder-mark: 14px;     /* dot between "Rei Watanabe" and the book title */
  --size-explore-button-mobile: 56px;

  /* ---------------------------------------------------------------
     Ratios + placements taken from the Figma frames
     --------------------------------------------------------------- */
  --ratio-square: 1 / 1;
  --ratio-proto: 16 / 9;             /* book prototype band on phones */
  --ratio-explore: 1020 / 573.75;    /* Figma file preview card */
  --ratio-rounded: 1920 / 960;       /* rounded gallery section */
  --overlay-rounded-width: 105.8%;   /* cut-out over a rounded section (2031 / 1920) */
  --explore-logo-inset: 44.8% 9.54% 44.8% 10.93%;   /* logo placement in the preview */
  --flip-fixed-top: 66%;             /* fixed "Flip Phone" label on the band */
  --file-enter-offset: 5%;           /* Explore File page slides in from 5% lower */

  /* ---------------------------------------------------------------
     Radii
     --------------------------------------------------------------- */
  --radius-xs: 3px;                  /* Flip Phone label */
  --radius-small: 5px;               /* drawer chips, book sheets */
  --radius-tab: 10px;                /* MODIFIED (version 2.10, Figma Nav03 tab-item): 10 (was 15) — tabs, status */
  --radius-title: 20px;              /* title objects */
  --radius-card: 20px;               /* MODIFIED (version 2.10, Figma img-thumbnail 67:247913): 20 (was 25) — cards, panels */
  --radius-book: 30px;               /* book cards */
  /* ///////////////////////// START book shelf (NEW version 2.25) ///////////////////////// */
  --size-book-stage-w: 1840px;       /* step picture (Figma ATT/Book/Pages 1840 x 728 + shadows = 860) */
  --size-book-stage-h: 860px;
  --size-book-cover-w: 754px;        /* closed book (Figma Frame 2147226618 754 x 440) */
  --size-book-cover-h: 440px;
  --size-book-cover-top: 198px;      /* closed book top inside the step picture */
  --size-book-spine: 30px;           /* shaded strip down the left edge of a closed book */
  --radius-book-cover: 2px;
  --color-book-cover: #e6e6e6;
  --size-client-logo: 400px;         /* NEW (version 2.27): Details Clients logo box (Figma 337-469 in a 625 cell) */
  --z-cursor-tip: 9999;               /* NEW (version 2.27): label that follows the cursor, above everything */
  --color-cursor-tip-ink: #edecf4;   /* NEW (version 2.27): Figma 322:47174 label text */
  /* ///////////////////////// START explore module (NEW version 2.26) ///////////////////////// */
  /* Figma effect styles "rws dsp l01" (card at rest), "l03" (card on hover / open), module hover shadow */
  --shadow-dsp-l01: 0 6.7px 14.3px rgba(0, 0, 0, 0.10), 0 26.3px 26.3px rgba(0, 0, 0, 0.02), 0 59.3px 35.7px rgba(0, 0, 0, 0.05), 0 105.3px 42px rgba(0, 0, 0, 0.01);
  --shadow-dsp-l03: 0 20px 43px rgba(0, 0, 0, 0.10), 0 79px 79px rgba(0, 0, 0, 0.02), 0 178px 107px rgba(0, 0, 0, 0.05), 0 316px 126px rgba(0, 0, 0, 0.01);
  --shadow-explore-module: 0 1.7px 3.6px rgba(0, 0, 0, 0.10), 0 6.6px 6.6px rgba(0, 0, 0, 0.02), 0 14.8px 8.9px rgba(0, 0, 0, 0.05), 0 26.3px 10.5px rgba(0, 0, 0, 0.01);
  --radius-explore-module: 15px;
  --padding-explore-module: clamp(40px, 7.8vw, 150px) clamp(25px, 23.4vw, 450px);   /* Figma 150 / 450 on 1920 */
  --ratio-explore-open: 1870 / 1052;
  /* ///////////////////////// END explore module (NEW version 2.26) ///////////////////////// */
  --shadow-book-cover: 0 60px 60px -30px rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.12);
  --gradient-book-spine: linear-gradient(90deg, rgba(0, 0, 0, 0.10), rgba(255, 255, 255, 0.35) 45%, rgba(0, 0, 0, 0.08) 60%, rgba(0, 0, 0, 0));
  /* ///////////////////////// END book shelf (NEW version 2.25) ///////////////////////// */
  --radius-button: 35px;             /* pill buttons */
  --radius-rounded-m: 60px;          /* rounded gallery (mobile) */
  --radius-rounded: 180px;           /* rounded gallery */
  --radius-round: 3333px;            /* fully round chips / pills */
  --radius-circle: 50%;

  /* ---------------------------------------------------------------
     Layers
     --------------------------------------------------------------- */
  --z-card: 1;
  --z-card-raised: 50;
  --z-status: 15;
  --z-nav: 20;
  --z-search: 25;
  --z-modal: 30;
  --z-file: 35;

  /* ---------------------------------------------------------------
     Motion (read by js/global.js -> rwsMotion.js / rwsModal.js / rwsCanvas.js)
     --------------------------------------------------------------- */
  --motion-duration: 300ms;          /* one element (200-400ms range) */
  --motion-easing: cubic-bezier(0.42, 0, 0.58, 1);   /* ease-in-out */
  --motion-stagger: 60ms;            /* delay between elements */
  --motion-stagger-max: 400ms;       /* whole sequence starts within this */
  --motion-offset: 50%;              /* move by 50% of the element's height */
  --motion-scroll-fade: 200ms;
  --motion-scroll-idle: 500ms;
  /* ///////////////////////// START open motion (MODIFIED version 2) ///////////////////////// */
  --motion-open: 900ms;              /* MODIFIED (version 2): was 650ms — card scales up to fill the screen */
  --motion-open-easing: cubic-bezier(0.7, 0, 0.2, 1); /* MODIFIED (version 2): uff.cfda.com-like */
  --motion-morph: 900ms;             /* NEW (version 2): work cards fly into / out of stacks */
  --motion-morph-easing: cubic-bezier(0.7, 0, 0.2, 1);
  /* ///////////////////////// END open motion (MODIFIED version 2) ///////////////////////// */
  --motion-drawer: 500ms;            /* drawer slide */
  --motion-drawer-easing: cubic-bezier(0.42, 0, 0.58, 1);
  --motion-pop: 120ms;               /* Flip Phone label pop-in */
  --motion-flip-every: 100ms;        /* new Flip Phone label */
  --motion-fade: 350ms;              /* muted cards */

  /* ---------------------------------------------------------------
     Effects (Figma effect styles)
     --------------------------------------------------------------- */
  --shadowm-box-shadow: 0px 21px 13px 0px rgba(0, 0, 0, 0.06),
    0px 9px 9px 0px rgba(0, 0, 0, 0.1), 0px 2px 5px 0px rgba(0, 0, 0, 0.11);
  --shadowl-box-shadow: 0px 23px 52px 0px rgba(0, 0, 0, 0.08),
    0px 94px 94px 0px rgba(0, 0, 0, 0.07),
    0px 211px 127px 0px rgba(0, 0, 0, 0.04);
  --shadows-box-shadow: 0px 20.71px 12.82px 0px rgba(0, 0, 0, 0.06),
    0px 8.87px 8.87px 0px rgba(0, 0, 0, 0.1),
    0px 1.97px 4.93px 0px rgba(0, 0, 0, 0.11);
  --shadow-sheet: 0px 1.5px 1.9px 0px rgba(0, 0, 0, 0.11), 0px 6.8px 3.4px 0px rgba(0, 0, 0, 0.1),
    0px 16px 4.9px 0px rgba(0, 0, 0, 0.06); /* book sheets (Figma drop-shadow on the deck) */
  --stroke-hair: 1px;
  --stroke-focus: 2px;
  --stroke-icon: 1.5px;              /* drawn icons (x, +, chevron) */
  --opacity-dim: 0.35;               /* unavailable chip */
  --opacity-disabled: 0.5;           /* disabled tab */
  --opacity-hover: 0.8;              /* dark chip hover */
  --opacity-muted: 0.12;             /* muted card */
  --opacity-explore: 0.15;           /* image under the Figma file preview */
  --filter-white: brightness(0) invert(1);   /* turn a dark logo white on dark pills */
  --scale-logo-mobile: 1.4;          /* client logo grows a little on half-size mobile cards */
  --scale-press: 1.06;               /* round button hover */
  --scale-pop-from: 0.6;             /* Flip Phone label pop-in start */

  /* Runtime values written by rwsApp.js / rwsNav.js */
  --rws-scale: 1;
  --rws-board-scale: 1;
  --rws-nav-push: 0px;
}
/* ///////////////////////// END tokens (NEW v9) ///////////////////////// */

/* ///////////////////////// START aliases (NEW v9) ///////////////////////// */
/* Names used by v1-v8 stylesheets and scripts, now pointing at the tokens above */
:root {
  --rws-font: var(--font);
  --rws-ink: var(--color-ink-e06);
  --rws-ink-e06: var(--color-ink-e06);
  --rws-ink-e03: var(--color-ink-e03);
  --rws-dark-e01: var(--color-dark-e01);
  --rws-bcg-e01: var(--color-bcg-e01);
  --rws-bse-e00: var(--color-bse-e00);
  --rws-bse-e01: var(--color-bse-e01);
  --rws-page-bg: var(--color-bcg-e01);
  --rws-chip: var(--color-bse-e04);
  --rws-chip-nav: var(--color-bse-e04);
  --rws-chip-hover: var(--color-hover);
  --rws-chip-related: var(--color-related);
  --rws-chip-dark: var(--color-ink-e06);
  --rws-chip-industry: var(--color-industry);
  --rws-chip-light-ink: var(--color-bse-e04);
  --rws-tab-bg: var(--color-bse-e04);
  --rws-tab-ink: var(--color-ink-e06);
  --rws-tab-border: var(--color-bse-e05);
  --rws-title-ink: var(--color-black);
  --rws-card-title: var(--color-bse-e04);
  --rws-card-title-hover: var(--color-ink-e06);
  --rws-card-title-hover-ink: var(--color-bse-e06);
  --rws-card-tag: var(--color-bcg-e01);
  --rws-card-logo-bg: var(--color-logo-card);
  --rws-close: var(--color-close);
  --rws-close-dark: var(--color-close-dark);
  --rws-empty: var(--color-empty);
  --rws-hero-bg: var(--color-hero);
  --rws-booked-dot: var(--color-utl-g03);
  /* ///////////////////////// START one active colour (MODIFIED version 2.10) ///////////////////////// */
  /* Figma Nav03 295:36673: the active tab is ONE colour on every page — ink pill, light text
     (was yellow / red / blue / violet per page) */
  --rws-accent-works: var(--color-ink-e06);
  --rws-accent-clients: var(--color-ink-e06);
  --rws-accent-brands: var(--color-ink-e06);  /* NEW (version 2.10) */
  --rws-accent-books: var(--color-ink-e06);
  --rws-accent-info: var(--color-ink-e06);    /* NEW (version 2) */
  --rws-accent-ink: var(--color-bse-e04);
  /* ///////////////////////// END one active colour (MODIFIED version 2.10) ///////////////////////// */
  --rws-explore-bg: var(--color-explore);
  --rws-drawer-bg: var(--color-white);
  --rws-book-card: var(--color-book-card);
  --rws-book-page: var(--color-book-page);
  --rws-nav-tray: var(--color-bcg-e01);
  --rws-nav-toggle: var(--color-bse-e04);
  --rws-nav-toggle-open: var(--color-ink-e06);

  --rws-radius-card: var(--radius-card);
  --rws-radius-chip: var(--radius-round);
  --rws-radius-chip-active: var(--radius-card);
  --rws-radius-title: var(--radius-title);
  --rws-radius-tab: var(--radius-tab);
  --rws-radius-book: var(--radius-book);
  --rws-radius-small: var(--radius-small);
  --rws-title-size: var(--header-font-size);          /* MODIFIED (v9): 105px -> Figma Header 75px */
  --rws-title-tracking: var(--header-letter-spacing);
  --rws-count-size: var(--titleM-font-size);          /* MODIFIED (v9): 70px -> Figma Title(M) 43px */
  --rws-count-tracking: var(--titleM-letter-spacing);
  --rws-drawer-title-size: var(--header-font-size);   /* MODIFIED (v9): 70px -> Header 75px */
  --rws-drawer-title-tracking: var(--header-letter-spacing);
  --rws-explore-title-size: var(--display-font-size);
  --rws-explore-title-tracking: var(--display-letter-spacing);

  --rws-nav-height: var(--size-nav);
  --rws-nav-gap: var(--spacer01);
  --rws-chip-gap: var(--spacer-hair);
  --rws-tab-gap: var(--spacer-hair);
  --rws-modal-top: 0px;
  --rws-content-top: var(--content-top);
  --rws-mobile-top: var(--content-top-mobile);
  --rws-mobile-gutter: var(--spacer05);
  --rws-board-padding: var(--spacer05);
  --rws-heading-height: var(--size-heading);
  --rws-drawer-bar: var(--size-drawer-bar);
  --rws-logo-size: var(--size-logo);

  --rws-motion-duration: var(--motion-duration);
  --rws-motion-easing: var(--motion-easing);
  --rws-scroll-fade: var(--motion-scroll-fade);
  --rws-open-duration: var(--motion-open);
  --rws-open-easing: var(--motion-open-easing);
  --rws-drawer-duration: var(--motion-drawer);
  --rws-drawer-easing: var(--motion-drawer-easing);

  /* Text tokens (v5/v8): fixed sizes on every screen */
  --rws-text-size: calc(var(--paragraph-font-size) / var(--rws-scale));
  --rws-text-line: calc(var(--paragraph-line-height) / var(--rws-scale));
  --rws-label-size: calc(var(--label-font-size) / var(--rws-scale));
  --rws-label-line: calc(var(--label-line-height) / var(--rws-scale));
}

/* Inside the scaled board the text tokens cancel the board scale (v8) */
.rws-board {
  --rws-text-size: calc(var(--paragraph-font-size) / var(--rws-board-scale));
  --rws-text-line: calc(var(--paragraph-line-height) / var(--rws-board-scale));
  --rws-label-size: calc(var(--label-font-size) / var(--rws-board-scale));
  --rws-label-line: calc(var(--label-line-height) / var(--rws-board-scale));
}
/* ///////////////////////// END aliases (NEW v9) ///////////////////////// */

/* ///////////////////////// START base ///////////////////////// */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--color-bcg-e01);
  color: var(--color-ink-e06);
  font-family: var(--paragraph-font-family);
  font-size: var(--paragraph-font-size);
  line-height: var(--paragraph-line-height);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Elements toggled with the hidden attribute stay hidden even when a class sets display */
[hidden] { display: none !important; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: var(--stroke-focus) solid var(--color-focus);
  outline-offset: var(--stroke-focus);
}
/* ///////////////////////// END base ///////////////////////// */

/* ///////////////////////// START type classes (NEW v9) ///////////////////////// */
/* Reusable text styles (same names as the Figma text styles) */
.rws-type-header {
  font-family: var(--header-font-family);
  font-size: var(--header-font-size);
  font-weight: var(--header-font-weight);
  font-style: var(--header-font-style-reg);
  line-height: var(--header-line-height);
  letter-spacing: var(--header-letter-spacing);
}
.rws-type-title {
  font-family: var(--title-font-family);
  font-size: var(--title-font-size);
  font-weight: var(--title-font-weight);
  font-style: var(--title-font-style);
  line-height: var(--title-line-height);
  letter-spacing: var(--title-letter-spacing);
}
.rws-type-titleM {
  font-family: var(--titleM-font-family);
  font-size: var(--titleM-font-size);
  font-weight: var(--titleM-font-weight);
  line-height: var(--titleM-line-height);
  letter-spacing: var(--titleM-letter-spacing);
}
.rws-type-paragraph {
  font-family: var(--paragraph-font-family);
  font-size: var(--paragraph-font-size);
  font-weight: var(--paragraph-font-weight);
  line-height: var(--paragraph-line-height);
}
.rws-type-paragraphB {
  font-family: var(--paragraphB-font-family);
  font-size: var(--paragraphB-font-size);
  font-weight: var(--paragraphB-font-weight);
  line-height: var(--paragraphB-line-height);
}
.rws-type-label {
  font-family: var(--label-font-family);
  font-size: var(--label-font-size);
  font-weight: var(--label-font-weight);
  line-height: var(--label-line-height);
}
/* ///////////////////////// END type classes (NEW v9) ///////////////////////// */
/* ///////////////////////// END public/css/global.css (MODIFIED) ///////////////////////// */
