/* ============================================================
   Boris Willis Moves — global styles
   Direction: a darkened stage / motion-capture volume.
   Movement becomes data, data becomes movement.
   ============================================================ */

:root {
  /* Color — theatrical dark with a warm stage-light accent */
  --ink:      #141017;   /* warm near-black, the dark stage */
  --ink-2:    #1d1722;   /* lifted surface */
  --ink-3:    #271f2e;   /* card / hover surface */
  --bone:     #f4efe8;   /* warm light, like skin under a light */
  --bone-dim: #aaa1a8;   /* muted text */
  --light:    #e9a94b;   /* stage amber — the single accent */
  --light-dim:#9c7233;
  --line:     rgba(244, 239, 232, 0.12);

  /* Type */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.33rem, 1.2rem + 0.66vw, 1.8rem);
  --step-2:  clamp(1.78rem, 1.5rem + 1.4vw, 2.8rem);
  --step-3:  clamp(2.6rem, 1.9rem + 3.5vw, 5rem);
  --step-4:  clamp(3.4rem, 2rem + 7vw, 8.5rem);

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Utility label — the "data" voice of the page */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-block: 1rem;
}
.logo-chip {
  display: inline-flex;
}
.logo-chip img { height: 40px; width: auto; display: block; }
.nav {
  display: flex;
  gap: clamp(0.9rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  color: var(--bone-dim);
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--bone); }

/* ---------- Hero / kinetic wordmark ---------- */
.hero {
  padding-block: clamp(4rem, 14vh, 9rem) clamp(3rem, 9vh, 6rem);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0.4em 0 0;
  font-size: var(--step-4);
}
.wordmark .line { display: block; }
.wordmark .moves {
  position: relative;
  display: inline-block;
  color: var(--bone);
}
/* Motion trail — afterimages of the word, fading behind it */
.wordmark .ghost {
  position: absolute;
  inset: 0;
  color: var(--light);
  z-index: -1;
}
.wordmark .ghost:nth-of-type(1) { opacity: 0.32; transform: translateX(0.14em); }
.wordmark .ghost:nth-of-type(2) { opacity: 0.16; transform: translateX(0.28em); }
.wordmark .ghost:nth-of-type(3) { opacity: 0.07; transform: translateX(0.42em); }

.lede {
  max-width: 46ch;
  margin-top: 1.4rem;
  font-size: var(--step-1);
  color: var(--bone);
}
.sub {
  max-width: 54ch;
  margin-top: 1rem;
  color: var(--bone-dim);
}

/* ---------- Disciplines (the accessible skills strip) ---------- */
.disciplines {
  padding-block: clamp(2.5rem, 7vh, 5rem);
  border-top: 1px solid var(--line);
}
.disc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.6rem;
}
@media (max-width: 62rem){ .disc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 34rem){ .disc-grid{ grid-template-columns: 1fr; } }
.disc {
  background: var(--ink);
  padding: 1.4rem 1.3rem 1.6rem;
}
.disc .n {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--light-dim);
}
.disc h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  margin: 0.5rem 0 0.4rem;
  line-height: 1.05;
}
.disc p { margin: 0; color: var(--bone-dim); font-size: var(--step--1); }

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0;
}
.section-head a {
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light);
  text-decoration: none;
}
.section-head a:hover { text-decoration: underline; }

/* ---------- Work grid + cards ---------- */
.work {
  padding-block: clamp(3rem, 8vh, 6rem);
  border-top: 1px solid var(--line);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.card {
  position: relative;
  display: block;
  background: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--light) 50%, var(--line)); }
.card:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.card .thumb {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 70% 10%, var(--ink-3), var(--ink-2));
  position: relative;
}
/* mocap joint markers */
.card .thumb::before,
.card .thumb::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--light);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card .thumb::before { top: 28%; left: 34%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--light) 18%, transparent); }
.card .thumb::after  { top: 62%; left: 58%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--light) 18%, transparent); }
.card:hover .thumb::before,
.card:hover .thumb::after { opacity: 0.9; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1.1rem 1.1rem 1.3rem; }
.card .year { font-family: var(--mono); font-size: var(--step--1); color: var(--light); }
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.05;
  margin: 0.35rem 0 0.5rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
}

/* ---------- Long-form / project + about pages ---------- */
.prose { max-width: 60ch; }
.prose h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-3);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0.2em 0 0.3em;
}
.prose h2 {
  font-family: var(--display);
  font-size: var(--step-1);
  margin-top: 2rem;
}
.prose a { color: var(--light); }
.page-head { padding-block: clamp(3rem, 10vh, 6rem) 1rem; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--bone-dim);
  border-block: 1px solid var(--line);
  padding-block: 0.9rem;
  margin: 1.6rem 0 2rem;
}
.meta-row span b { color: var(--bone); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 10vh, 7rem);
  padding-block: clamp(2.5rem, 7vh, 4rem);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  margin: 0 0 0.8rem;
  font-weight: 400;
}
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: var(--light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.kit-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--light);
  color: var(--light) !important;
  padding: 0.6rem 0.9rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kit-link:hover { background: var(--light); color: var(--ink) !important; }
.colophon {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--bone-dim);
}

@media (max-width: 40rem) {
  .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Motion / accessibility floor ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }

:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
