/* =============================================================================
   base.css — shared foundation for every page
   Design tokens, reset, typography, primitives, buttons, navigation shell
   and motion. Page-specific styles live in each page's own <style> block.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Surfaces & text */
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --ink: #0e0e12;
  --ink-soft: #3a3a42;
  --muted: #6a6a73;
  --line: #e9e9ee;

  /* Brand gradient */
  --g1: #5145e5;
  --g2: #b23fcb;
  --g3: #ff6b5e;
  --grad: linear-gradient(100deg, var(--g1), var(--g2) 52%, var(--g3));

  /* Typography */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1140px;
  --r: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------------------------
   Reset & document
   ------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--g2);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--g2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ----------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------------------------------------------------------
   Buttons
   `.btn` is a bordered, secondary button by default; `.btn-primary` paints it
   with the brand gradient. Context-specific hover treatments are defined by
   the pages that own them.
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease),
    box-shadow .25s var(--ease), background-position .4s var(--ease);
}

.btn-primary {
  border: none;
  background: var(--grad);
  background-size: 160% 100%;
  color: #fff;
  box-shadow: 0 8px 26px -10px rgba(120, 60, 220, .6);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform .25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ----------------------------------------------------------------------------
   Navigation brand (shared by every page's <nav>)
   ------------------------------------------------------------------------- */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.02em;
}

/* MR monogram logo image. Height in em so it scales with the
   surrounding .brand font-size (smaller in the footer automatically);
   width auto keeps the mark's natural proportions. */
.brand .mark {
  height: 1.5em;
  width: auto;
  flex: none;
  display: block;
  transition: transform .4s var(--ease);
}

.brand:hover .mark {
  transform: scale(1.06);
}

/* ----------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .stagger > * {
    opacity: 1;
    transform: none;
  }

  .orb {
    display: none;
  }
}
