/* Fonts: Instrument Serif (italic display) + Inter Tight (grotesk), loaded in each page's <head> */

:root {
  --white: #ffffff;
  --ink: #0a0b1f;
  --muted: rgba(10, 11, 31, 0.56);
  --rule: rgba(10, 11, 31, 0.14);

  --blue: #0007ec;
  --blue-deep: #00049a;
  --orange: #ff5f1f;
  --silver: #c4c8cf;
  --silver-hi: #eef0f3;

  --chrome: linear-gradient(115deg, #8e939c 0%, #c4c8cf 26%, #ffffff 44%, #b7bbc3 58%, #eef0f3 72%, #9da2ab 100%);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

button, input { font: inherit; color: inherit; }

/* small uppercase labels, like "PROJECT OVERVIEW" */
.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* display type: italic serif and grotesk caps, mixed line by line */
.it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; }
.caps { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: -0.035em; }

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

/* faint film grain over the white */
.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* pill buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.pill:hover { background: var(--blue); }
.pill:active { transform: scale(0.97); }
.pill--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill--ghost:hover { background: var(--ink); color: var(--white); }
.pill:focus-visible, .link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.link {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.link:hover { color: var(--blue); }

/* shared eyes */
.eyes { display: block; overflow: visible; }
.eyes .eye { transform-box: fill-box; transform-origin: center; transition: transform 0.12s var(--ease-soft); }
.eyes .happy, .eyes .closed { opacity: 0; transition: opacity 0.15s; }
.eyes.is-blink .eye { transform: scaleY(0.06); }
.eyes.is-shut .eye { transform: scaleY(0.06); opacity: 0; transition: transform 0.16s var(--ease-soft), opacity 0s 0.16s; }
.eyes.is-shut .closed { opacity: 1; transition-delay: 0.1s; }
.eyes.is-happy .eye { opacity: 0; }
.eyes.is-happy .happy { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
