/* eliott & markus proposal page. Tokens read from eliott-markus.com (2026-11-16). */
:root {
  --ink: #fff;                             /* text and marks, on the black background */
  --ink-2: #222;
  --paper: #f3f0e6;
  --white: #fff;
  --bg: #050505;                           /* the loop's average tone, shown before it plays */
  --veil: rgba(0, 0, 0, .12);              /* a touch deeper behind the marks */
  --muted: rgba(255, 255, 255, .66);
  --green: #1d4520;
  --orange: #f25a28;
  --yellow: #fcba00;
  --pink: #f4c4c6;
  --sky: #a6d4f9;
  --blue: #125ed4;
  --gutter: clamp(24px, 6.6vw, 96px);
  --sgap: clamp(6px, 1.1vw, 16px);
  --tile: calc((100svh - 8 * var(--sgap)) / 7);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: Gilroy, system-ui, sans-serif; font-weight: 400; }
img { display: block; max-width: 100%; }
h1, p { margin: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}


.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4.4svh, 40px) var(--gutter) clamp(48px, 9svh, 96px) clamp(24px, 3.3vw, 48px);
  min-width: 0;
}

.bar { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.em-logo { width: 120px; height: auto; transform-origin: 0 0; }
.client-logo {
  width: auto;
  height: 44px;
}
.client-logo[data-invert] { filter: brightness(0) invert(1); }   /* for marks drawn in white */

.title { max-width: 18ch; max-width: min(1100px, 100%); }
.eyebrow {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 28px;
}
.client {
  font-weight: 600;
  font-size: clamp(48px, 7.4vw, 120px);
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.client .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.client .w > span { display: inline-block; will-change: transform; }
.to {
  margin-top: 36px;
  max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}
.when { margin-top: 10px; font-size: clamp(16px, 1.35vw, 20px); font-weight: 500; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg) url(../bg/black-fluid.jpg) center / cover; }
.bg video { width: 100%; height: 100%; object-fit: cover; }
.bg::after { content: ""; position: absolute; inset: 0; background: var(--veil); }

/* ---------- intro stage ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
  --gap: clamp(6px, 1.1vw, 16px);
  --edge: clamp(16px, 3.4vw, 48px);       /* row's distance to the bottom of the screen */
  --c: min(176px, calc((100vw - 2 * var(--edge) - 6 * var(--gap)) / 7));
}
.stage-logo { position: absolute; left: 50%; will-change: transform, opacity; }
.orbit img {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--orbit-tile, clamp(56px, 7.6vw, 112px));
  height: var(--orbit-tile, clamp(56px, 7.6vw, 112px));
  border-radius: calc(var(--orbit-tile, clamp(56px, 7.6vw, 112px)) * .122);   /* the site's tile corner, 35 on 287 */
  object-fit: cover;
  will-change: transform;
  visibility: hidden;
}
.stage-logo { top: 50%; width: clamp(140px, 12.5vw, 200px); height: auto; }

/* before the intro runs, nothing flashes in its end position */
.js.pre .hero, .js.pre .stage { visibility: hidden; }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-body { padding: 32px 16px 48px; gap: 64px; }
  .em-logo { width: 96px; }
  .client-logo { height: 32px; }
  .eyebrow { font-size: 13px; letter-spacing: .24em; margin-bottom: 20px; }
  .to { margin-top: 28px; }
}
