/* Body of Work. Brand palette from the Canva board.
   Layout: one tall scroll stage for the 8 reveal, then full-bleed colour bands. */
:root {
  --paper: #eeeae9;     /* bow cream */
  --ink: #000100;
  --muted: #5b5655;
  --lime: #d0ff7d;
  --lime-pale: #f0fec9;
  --maroon: #491c19;
  --red: #c6392f;
  --olive: #58482e;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --inscription: var(--body);
  --gutter: max(20px, 4vw);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
.inner { max-width: 1320px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--inscription); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; margin: 0 0 28px; color: var(--muted); }
.eyebrow.light { color: var(--lime); }
.inscription { font-family: var(--inscription); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px));
  color: #fff; mix-blend-mode: difference; pointer-events: none; }
.nav a { pointer-events: auto; text-decoration: none; }
.nav-mark { display: flex; align-items: center; gap: 10px; }
.nav-mark svg { width: 13px; fill: currentColor; }
.nav-mark span { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.nav nav a { position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.nav nav a:hover::after, .nav nav a:focus-visible::after { transform: scaleX(1); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* ---------- hero reveal ---------- */
.reveal { position: relative; height: 340vh; height: 340svh; }
.reveal-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.reveal-video { position: absolute; inset: 0; overflow: hidden; }
.reveal-video video { position: absolute; left: 50%; top: 50%; max-width: none; transform: translate(-50%, -50%) scale(var(--vs, 1.12)); transform-origin: center; will-change: transform; }
.reveal-mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reveal-mask #paper { fill: var(--paper); }

.reveal-type { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wordmark { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%;
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.035em; line-height: .86;
  font-size: clamp(44px, 10.5vw, 190px); color: var(--ink); white-space: nowrap; }
.wm-gap { flex: none; width: calc(var(--eight-w, 30vh) + 0.5em); }
.wm-left, .wm-right { display: block; will-change: transform, opacity; }
.reveal-type .inscription { position: absolute; left: 0; right: 0; bottom: calc(10vh + env(safe-area-inset-bottom, 0px)); text-align: center; margin: 0; font-size: clamp(11px, 1.05vw, 15px); color: var(--muted); }
.scroll-cue { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 44px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: cue 2.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.reveal-caption { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); margin: 0;
  font-family: var(--inscription); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: #fff; opacity: 0; }

/* Phones: stack the wordmark above and below the 8 */
@media (max-width: 700px) {
  .wordmark { flex-direction: column; font-size: clamp(40px, 15vw, 84px); }
  .wm-gap { width: auto; height: calc(var(--eight-h, 40vh) + 18px); }
  .reveal-type .inscription { bottom: calc(8vh + env(safe-area-inset-bottom, 0px)); padding: 0 16px; }
  .scroll-cue { display: none; }
}

/* ---------- intro ---------- */
.intro { padding-block: clamp(96px, 16vw, 200px) clamp(64px, 10vw, 120px); }
.statement { margin: 0; max-width: 26ch; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(28px, 4.2vw, 64px); text-wrap: pretty; }
.statement em { font-family: "Archivo", var(--display); font-style: italic; font-weight: 800; text-transform: none; letter-spacing: -.01em; color: var(--red); }

/* ---------- pillars ---------- */
.pillars { padding-block: 0 clamp(96px, 14vw, 180px); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); border-top: 2px solid var(--ink); padding-top: 36px; }
@media (max-width: 820px) { .pillar-grid { grid-template-columns: minmax(0, 1fr); } }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; min-width: 0; }
.pillar-mark { width: 16px; fill: var(--ink); grid-row: span 2; margin-top: 6px; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.pillar:hover .pillar-mark { transform: rotate(90deg); }
.pillar h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(22px, 2.1vw, 30px); line-height: 1; }
.pillar p { margin: 6px 0 0; color: var(--muted); max-width: 36ch; }

/* ---------- work ---------- */
.work { background: var(--maroon); color: var(--paper); padding-block: clamp(80px, 12vw, 160px); overflow: hidden; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 820px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.work-title { margin: 0 0 24px; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; font-size: clamp(48px, 8vw, 124px); color: var(--lime); }
.work-text { margin: 0 0 36px; max-width: 40ch; color: #e6d6d2; font-size: 18px; }
.work-eight { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 100 / 184; max-width: 100%; overflow: hidden;
  -webkit-mask: url("assets/bow-8.svg") center / 100% 100% no-repeat; mask: url("assets/bow-8.svg") center / 100% 100% no-repeat; background: #1d0b09; }
.work-eight video { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; transition: transform .4s cubic-bezier(.16,1,.3,1), background-color .3s; }
.btn::after { content: ""; width: 7px; height: 13px; background: currentColor; -webkit-mask: url("assets/bow-8.svg") center / contain no-repeat; mask: url("assets/bow-8.svg") center / contain no-repeat; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: rotate(90deg); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }

/* ---------- marquee ---------- */
.marquee { background: var(--lime); overflow: hidden; padding-block: 22px; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 4vw, 56px); letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.marquee-track svg { width: .42em; fill: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- contact + footer ---------- */
.contact { background: var(--ink); color: var(--paper); padding-block: clamp(96px, 14vw, 180px); }
.contact-title { margin: 0 0 40px; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; font-size: clamp(48px, 9vw, 150px); }
.contact-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact-email { font-size: 18px; color: var(--paper); text-decoration: none; border-bottom: 1px solid #5b5655; padding-bottom: 2px; transition: border-color .3s; user-select: all; }
.contact-email:hover { border-color: var(--lime); }
.foot { background: var(--ink); color: #a8a19d; padding-block: 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid #2c2a29; padding-top: 28px; }
.foot-mark { width: 14px; fill: var(--paper); }
.inscription.small { margin: 0; font-size: 14px; letter-spacing: .02em; text-transform: none; color: var(--red); }
.inscription.small em { font-style: italic; font-weight: 700; }
.foot-meta { margin: 0 0 0 auto; font-size: 13px; text-align: right; line-height: 1.6; }
@media (max-width: 560px) { .foot-meta { margin: 0; text-align: left; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .scroll-cue i::after { animation: none; }
}
