/* Packaging Studio · design tokens.
   Colours: the brand board's 7 only (+ tints/shades for contrast). Fonts: the board's 3 only.
   Motion: the measured reference values (take-list T1-T7 + keyframes from the reference source), unchanged.
   Sizes: the approved storyboards are 1920 px desktops drawn at 50 %, so 1 board px = 2 * var(--u). */
@property --orbit-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  /* brand board */
  --ebony: #0B0B0B;
  --foret: #0E3B34;
  --stone: #8D8478;
  --ivory: #F3EDE0;
  --gold: #D4B47C;
  --teal: #00E5C8;
  --violet: #8A3DFF;
  /* readable tints and shades of those 7 */
  --raise: #151515;            /* Ebony tint */
  --stone-shade: #5E574D;      /* Stone shade: secondary text on Ivory */
  --gold-text: #7A5C2A;        /* Champagne shade: gold-toned text on Ivory */
  --ivory-raise: #FBF8F2;      /* Ivory tint: cards on Ivory */
  --ink-2: #D6CFC2;            /* Ivory/Stone tint: body text on dark */
  --ink-3: #BDB5A8;            /* Ivory/Stone tint: secondary text on dark */
  --light: #FFF2D6;            /* Champagne tint: orbit light core */
  --hair: rgba(141, 132, 120, .35);
  --hair-soft: rgba(141, 132, 120, .22);
  --glass: rgba(21, 21, 21, .72);
  --glass-strong: rgba(21, 21, 21, .82);
  --glow: rgba(212, 180, 124, .06);

  /* fonts */
  --f-display: 'Cormorant Garamond', 'Cormorant', 'Times New Roman', serif;
  --f-ui: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-accent: 'Lora', Georgia, serif;

  /* motion: measured, the build must match */
  --ease: cubic-bezier(.22, .61, .36, 1);          /* T1 reveal + T2 hover */
  --ease-land: cubic-bezier(.10, .75, .15, 1);     /* boxes landing, lids, drawers */
  --ease-heavy: cubic-bezier(.75, 0, .18, 1);      /* camera moves */
  --ease-leave: cubic-bezier(.55, 0, .90, .35);    /* things leaving */
  --ease-drift: cubic-bezier(.40, 0, .60, 1);      /* T4 / T5 ambient + drifts */
  --ease-cue: cubic-bezier(.4, 0, .2, 1);          /* T6 scroll cue */
  --t-reveal: .7s;
  --t-stagger: .08s;
  --t-hover: .3s;
  --t-orbit: 3.2s;
  --t-ambient: 24s;
  --t-wall: 64s;
  --t-drift-a: 58s;
  --t-drift-b: 44s;
  --t-drift-c: 34s;
  --t-cue: 1.6s;
  --t-row: .6s;                                    /* T7, linear */
  --t-text: .4s;                                   /* Ref B text colour, linear */
  --t-swap: .6s;
  --reveal-y: 18px;                                /* measured translate3d(0, 18px, 0) */
  --rise-y: 12px;                                  /* rotating words */
  --nudge: 3px;                                    /* arrow disc on hover */

  /* layout: design unit follows the 1920 px boards, growth capped at 1.25x */
  --u: min(clamp(.5px, calc(100vw / 1920), 1.25px), calc(100vh / 1080 * 1.05));   /* scales like the 16:9 board frame: by width or height, whichever is tighter */
  --m: max(20px, calc(120 * var(--u)));            /* side margin (board 60 px) */
  --radius: 2px;
  --pill: 999px;
  --nav-h: max(56px, calc(68 * var(--u)));
  --nav-top: max(12px, calc(24 * var(--u)));

  /* type scale (board x2 at 1920, fluid, readable minimums) */
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: max(11px, calc(13 * var(--u)));
  --fs-nav: max(13px, calc(15 * var(--u)));
  --fs-pill: max(13px, calc(16 * var(--u)));
  --fs-chip: max(11px, calc(12 * var(--u)));
  --fs-h1: max(40px, calc(66 * var(--u)));
  --fs-h2: max(34px, calc(56 * var(--u)));
  --fs-statement: max(28px, calc(60 * var(--u)));
  --fs-giant: max(120px, calc(380 * var(--u)));
}

@media (max-width: 767px) {
  :root { --fs-body: 15px; --nav-h: 56px; --m: 24px; }   /* B49: one 24 px side margin on every phone page (the 0.5 px unit floor gave 60 px at 375 px) */
}
