/* =========================================================================
   RIGHTS — tokens, reset, typography, grid
   ========================================================================= */

:root {
  /* ---- surface -------------------------------------------------------- */
  --paper:        #FAFAF8;   /* hero */
  --paper-2:      #F1F1EF;   /* light editorial sections */
  --ink:          #0D0E10;   /* primary dark */
  --ink-2:        #131416;   /* secondary dark block */
  --blue:         #1675E8;
  --blue-deep:    #0F5FC4;

  /* ---- foreground ----------------------------------------------------- */
  --text:         #111214;
  --text-soft:    #57585C;
  --muted:        #8C8D90;
  --hairline:     rgba(17, 18, 20, 0.11);
  --hairline-2:   rgba(17, 18, 20, 0.055);

  --on-dark:          rgba(255, 255, 255, 0.92);
  --on-dark-soft:     rgba(255, 255, 255, 0.56);
  --on-dark-muted:    rgba(255, 255, 255, 0.34);
  --hairline-dark:    rgba(255, 255, 255, 0.10);
  --hairline-dark-2:  rgba(255, 255, 255, 0.055);

  /* ---- metrics -------------------------------------------------------- */
  --gutter:  clamp(20px, 4.44vw, 76px);
  --col-gap: clamp(16px, 1.6vw, 28px);
  --frame:   1720px;

  /* ---- type ----------------------------------------------------------- */
  --font: 'Geist', 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont,
          'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Sized at a 1440 reference. Each step was re-set against its own job,
     not scaled off one multiplier: metadata grew least, body copy most. */
  --t-micro:  clamp(11px,   0.875vw, 13.5px);  /* index numbers, legal      */
  --t-meta:   clamp(12.5px, 0.97vw,  15.5px);  /* labels, captions, notes   */
  --t-body:   clamp(15px,   1.24vw,  19px);    /* paragraphs                */
  --t-nav:    clamp(14.5px, 1.14vw,  17px);    /* the floating instrument   */
  --t-lead:   clamp(16.5px, 1.39vw,  21.5px);  /* secondary statements      */
  --t-stmt:   clamp(21px,   1.91vw,  31px);    /* section statements        */
  --t-title:  clamp(26px,   2.36vw,  39px);    /* section titles            */
  --t-link:   clamp(23px,   2.05vw,  33px);    /* footer links              */
  --t-mega:   clamp(54px,   10.4vw,  176px);   /* the one display size      */
  --t-word:   clamp(84px,   21vw,    400px);   /* the RIGHTS wordmark       */

  /* ---- motion --------------------------------------------------------- */
  --ease:      cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.62s;
}

/* ------------------------------------------------------------- reset ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 1, 'cv01' 1;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

::selection { background: rgba(22, 117, 232, 0.16); color: var(--text); }

:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------- grid --- */
/* The whole site sits on a five-column field.
   col 1 is almost always empty — that emptiness is the layout. */

.frame {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.c1 { grid-column: 1; }
.c2 { grid-column: 2; }
.c3 { grid-column: 3; }
.c4 { grid-column: 4; }
.c5 { grid-column: 5; }
.c3-4 { grid-column: 3 / 5; }
.c3-5 { grid-column: 3 / 6; }
.c2-3 { grid-column: 2 / 4; }
.c2-5 { grid-column: 2 / 6; }

/* ------------------------------------------------------------ type ------ */

.index {
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.label {
  font-size: var(--t-meta);
  letter-spacing: -0.002em;
  color: var(--text);
}

.eyebrow {
  display: block;
  font-size: var(--t-meta);
  color: var(--muted);
  letter-spacing: -0.002em;
}

.stmt {
  font-size: var(--t-stmt);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.title {
  font-size: var(--t-title);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.meta-p {
  font-size: var(--t-meta);
  line-height: 1.58;
  color: var(--text-soft);
  letter-spacing: -0.004em;
  max-width: 25ch;
}

/* dark context overrides */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .index { color: var(--on-dark-muted); }
.dark .label { color: var(--on-dark); }
.dark .eyebrow { color: var(--on-dark-muted); }
.dark .meta-p { color: var(--on-dark-soft); }

/* --------------------------------------------------------- hairline ----- */

.rule {
  height: 1px;
  background: var(--hairline-2);
  width: 100%;
}
.dark .rule { background: var(--hairline-dark-2); }

/* ------------------------------------------------------------- links ---- */

.blue { color: var(--blue); }

/* small blue action: outlined capsule glyph + label (the reference's
   signature link form) */
.action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: var(--t-meta);
  letter-spacing: -0.002em;
  line-height: 1;
  transition: opacity 0.4s var(--ease);
}
.action__cap {
  width: 31px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: grid; place-items: center;
  opacity: 0.85;
  transition: transform 0.5s var(--ease-out);
}
.action__cap svg { width: 11px; height: 11px; }
.action__txt { position: relative; }
.action__txt::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}
.action:hover .action__cap { transform: translateX(3px); }
.action:hover .action__txt::after { transform: scaleX(1); }

/* text-only underline link */
.link {
  position: relative;
  display: inline-block;
  transition: color 0.4s var(--ease);
}
.link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -0.16em;
  height: 1px; background: currentColor; opacity: 0.35;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.55s var(--ease-out);
}
.link:hover::after { transform: scaleX(1); }

/* outlined taxonomy pill — used for rights states in the hero */
.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(22, 117, 232, 0.32);
  border-radius: 999px;
  color: var(--blue);
  font-size: var(--t-meta);
  letter-spacing: -0.003em;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.45s var(--ease), background-color 0.45s var(--ease),
              transform 0.45s var(--ease-out);
}
.pill:hover {
  border-color: rgba(22, 117, 232, 0.72);
  background: rgba(22, 117, 232, 0.05);
  transform: translateY(-1px);
}

/* ------------------------------------------------------ motion prims ---- */

[data-reveal] { will-change: opacity, filter, transform; }

/* words split for progressive resolve — never inherit block layout */
span.w {
  display: inline-block;
  will-change: opacity, filter, transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; }
}
