/* ── Elarix · shared design tokens ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist+Mono:wght@400;500&family=Geist:wght@300;400;500;600&display=swap');

:root {
  --bg:        #f1ede4;   /* warm cream */
  --bg-2:      #e8e2d4;   /* a touch deeper */
  --ink:       #111110;
  --ink-2:     #3a3a37;
  --ink-3:     #6b6a64;
  --tan:       #c8b89a;
  --tan-deep:  #a99876;
  --line:      rgba(17,17,16,0.14);
  --line-soft: rgba(17,17,16,0.06);

  --serif: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Geist", "Söhne", "Helvetica Neue", system-ui, sans-serif;
  --mono:  "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* paper grain that lives on cream backgrounds — adds tactility */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* shared artboard wrapper ─ each direction lives inside this */
.eb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}

/* ── wordmark ──────────────────────────────────────────── */
.eb-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.eb-mark__glyph {
  width: 18px; height: 18px;
  display: block;
}
.eb-mark__wm {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}
.eb-mark__wm sup {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 2px;
  color: var(--ink-2);
  font-weight: 400;
}

/* ── nav ──────────────────────────────────────────── */
.eb-nav {
  position: absolute;
  top: 28px; left: 36px; right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.eb-nav__links {
  display: flex; gap: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eb-nav__links a {
  color: inherit; text-decoration: none;
  position: relative;
}
.eb-nav__links a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .35s cubic-bezier(.7,0,.2,1);
}
.eb-nav__links a:hover::after { transform: scaleX(1); }

/* ── shared typography ──────────────────────────────────────────── */
.eb-display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.eb-display em {
  font-style: italic;
  color: var(--ink-2);
}
.eb-caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
.eb-caption--ink { color: var(--ink); }

/* ── footer corners ──────────────────────────────────────────── */
.eb-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eb-corner.bl { bottom: 26px; left: 36px; }
.eb-corner.br { bottom: 26px; right: 36px; text-align: right; }

/* hairline divider */
.eb-rule { height: 1px; background: var(--line); width: 100%; }

/* round CTA pill */
.eb-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  transition: transform .3s cubic-bezier(.7,0,.2,1), background .25s ease;
}
.eb-cta:hover { background: var(--ink-2); transform: translateY(-1px); }
.eb-cta__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }

/* play-poster videos: muted loop autoplay */
.eb-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

/* ── notes card for the canvas intro ──────────────────────────── */
.note-card {
  background: var(--bg);
  padding: 38px 42px;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
  font-size: 13px;
  position: relative;
  height: 100%;
  overflow: hidden;
}
.note-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  font-weight: 400;
}
.note-card .sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.note-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; margin: 0 0 18px; }
.note-card dt {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 3px;
}
.note-card dd { margin: 0; color: var(--ink-2); }
.note-card .swatch-row { display: flex; gap: 8px; }
.note-card .swatch {
  width: 28px; height: 28px; border-radius: 4px;
  border: 1px solid var(--line-soft);
}
