/* =============================================================================
   Kalen Hayman — site chrome shared by every page.
   The AVA palette and faces, set light: five colours, three faces. Neon is a
   line, a dot or an accent, never a field.

   Light skin: the tokens keep their names but the page swaps them — --ink is
   the surface (white) and --bone the type (black). Anything that has to stay
   dark — a film, a player, the lightbox — and the bone bands (.on-bone) carry
   the original dark set below, so their insides need no changes.
   ========================================================================== */
:root {
  --ink: #FFFFFF;          /* the surface */
  --bone: #000000;         /* the type */
  --bone-rgb: 0, 0, 0;     /* lines and washes in the type colour */
  --panel: #F1F1EF;        /* a quiet block on the page */
  --hair: #D6D6D4;         /* hairlines and outlines */
  --neon-text: #000000;    /* neon type reads as black on white */
  --sand: #7A7A78;
  --paper: #000000;        /* the hover fill */
  --neon: #D8FE00;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Archivo', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --nav-h: 64px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(.76, 0, .24, 1);
}
/* the original dark set: bone bands, films, players, the lightbox */
.on-bone, .dark, .hero, .show-hero, .player, .lb, .film, .card, .card--project, .cast, .vf-pair, .portrait, .work--real, .clip {
  --ink: #000000; --bone: #EBEBEA; --bone-rgb: 235, 235, 234; --panel: #0a0a0a; --hair: #2a2a2a;
  --neon-text: #D8FE00; --paper: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--body); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
::selection { background: var(--neon); color: var(--ink); }

/* type roles */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.02em; line-height: .92; }
.mono { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: 11px; line-height: 1; }
.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--neon); margin-right: 10px; vertical-align: 1px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px;
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  background: var(--neon); color: var(--ink); border: 1px solid var(--neon); white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--paper); border-color: var(--paper); }
.btn--ghost { background: transparent; color: var(--bone); border-color: rgba(var(--bone-rgb),.45); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.on-bone .btn--ghost { color: var(--ink); border-color: rgba(0,0,0,.4); }
.on-bone .btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn .arr { font-family: var(--body); font-size: 14px; letter-spacing: 0; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); background: var(--ink); border-bottom: 1px solid rgba(var(--bone-rgb),.12);
}
.nav-mark { display: flex; align-items: center; height: 100%; }
.nav-mark img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { height: 40px; padding: 0 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--bone); position: relative; transition: transform .3s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--bone); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 8vh var(--gutter) 32px;
  transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
body.menu-open .menu { transform: none; visibility: visible; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: block; font-family: var(--display); font-size: clamp(44px, 13vw, 84px); line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; color: var(--bone); padding: 6px 0; border-bottom: 1px solid rgba(var(--bone-rgb),.12); }
.menu-list a:hover { color: var(--neon-text); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--sand); }

/* sections */
.section { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.on-bone { background: var(--bone); color: var(--ink); }
.eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 48px); color: var(--sand); font-size: 13px; }
.on-bone .eyebrow { color: var(--ink); }
/* a link in the eyebrow reads as a small outlined button */
.eyebrow a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid currentColor; transition: background-color .25s var(--ease), color .25s var(--ease); }
.eyebrow a:hover { background: var(--ink); color: var(--neon-text) !important; border-color: var(--ink); }
.on-bone .eyebrow a { border-color: rgba(0,0,0,.45); }
.h2 { font-size: clamp(48px, 9vw, 128px); margin: 0; }

/* work grid */
/* Views read as a row of buttons: outlined, the live one filled ink with neon type. */
.views { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(24px, 4vw, 48px); padding: 0; list-style: none; }
.views button { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; padding: 12px 18px; color: inherit; border: 1px solid currentColor; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.views button:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--neon-text); border-color: var(--ink); }
.views button[hidden] { display: none; }
.on-bone .views button { border-color: rgba(0,0,0,.45); }
.on-bone .views button:hover, .on-bone .views button[aria-pressed="true"] { border-color: var(--ink); }

.grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.card { position: relative; flex: 0 0 auto; overflow: hidden; background: var(--ink); color: var(--bone); text-align: left; display: block; width: 100%; }
.card.is-out { display: none; }
.card-media { position: relative; width: 100%; height: var(--h, auto); aspect-ratio: var(--ar, 4 / 5); overflow: hidden; background: var(--panel); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.035); }
.card-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px 14px; border-top: 1px solid rgba(var(--bone-rgb),.12); }
.card-title { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.card-types { color: var(--sand); text-align: right; white-space: nowrap; }
.card-slash { position: absolute; top: 0; left: 0; width: 5px; height: 0; background: var(--neon); transition: height .45s var(--ease); z-index: 2; }
.card:hover .card-slash { height: 100%; }
.card--cta { display: flex; flex-direction: column; justify-content: space-between; height: var(--h, auto); border: 1px solid var(--ink); background: var(--ink); color: var(--bone); padding: 18px; }
.card--cta .btn { align-self: flex-start; }
.card--cta .card-title { font-size: clamp(28px, 3.4vw, 44px); }
.on-bone .card { background: var(--ink); }
/* projects: one uniform 16:10 card each, three to a row (two on a tablet, one on a phone) */
.grid.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.card--project { width: auto; display: flex; flex-direction: column; }
.card--project .card-media { aspect-ratio: 16 / 10; height: auto; }
.card--project .card-cap { flex: 1; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; }
.card--project .card-title { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.02; }
.card--project .card-types { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; white-space: normal; font-size: 10px; letter-spacing: .18em; }
.card--project .card-meta { color: rgba(var(--bone-rgb),.4); white-space: nowrap; }
.card--project:hover .card-meta { color: var(--neon-text); }
.card--build .card-media { background: var(--neon); display: flex; align-items: flex-end; padding: clamp(16px, 2vw, 24px); }
.card--build .build-t { color: var(--ink); font-size: clamp(34px, 3.6vw, 56px); line-height: .9; }
@media (max-width: 1100px) { .grid.pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.pgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .card--project .card-title { font-size: 20px; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.lb.is-open { display: flex; }
.lb-inner { position: relative; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; }
.lb-media { max-height: calc(100vh - 140px); max-width: 100%; }
.lb-media img, .lb-media video, .lb-media canvas { max-height: calc(100vh - 140px); max-width: 100%; width: auto; height: auto; margin: 0 auto; object-fit: contain; display: block; }
.lb-media canvas { background: var(--paper); }
.lb-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.lb-cap .card-title { font-size: clamp(22px, 3vw, 36px); }
.lb-close { position: fixed; top: 14px; right: var(--gutter); height: 44px; padding: 0 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); border: 1px solid rgba(var(--bone-rgb),.3); }
.lb-close:hover { background: var(--bone); color: var(--ink); }
.lb-step { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--bone-rgb),.3); background: rgba(0,0,0,.55); color: var(--bone); font-size: 18px; z-index: 2; transition: background .25s var(--ease), color .25s var(--ease); }
.lb-step:hover { background: var(--bone); color: var(--ink); }
.lb-step--prev { left: 12px; }
.lb-step--next { right: 12px; }
.lb-step[hidden], .lb-count[hidden] { display: none; }
.lb-count { position: fixed; top: 28px; left: var(--gutter); color: var(--sand); }
.lb-link { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--neon-text); }
.lb-link:hover { color: var(--paper); }
body.lb-open { overflow: hidden; }

/* intake band + footer */
.band { padding: clamp(72px, 12vw, 160px) var(--gutter); border-top: 1px solid rgba(var(--bone-rgb),.12); display: grid; gap: 36px; align-items: end; grid-template-columns: 1fr auto; }
.band .h2 { font-size: clamp(40px, 9.5vw, 150px); white-space: nowrap; }
.foot { padding: 26px var(--gutter) 30px; border-top: 1px solid rgba(var(--bone-rgb),.12); display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; color: var(--sand); }
.foot a:hover { color: var(--neon-text); }
.foot-l { display: flex; flex-wrap: wrap; gap: 14px 32px; }

/* cursor — a neon dot on fine pointers, swells over anything clickable */
.cur { position: fixed; top: 0; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--neon); border-radius: 50%; pointer-events: none; z-index: 100; mix-blend-mode: difference; transform: translate(-100px, -100px); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease); display: none; }
body.cur-on .cur { display: block; }
body.cur-hot .cur { width: 44px; height: 44px; margin: -22px 0 0 -22px; }

@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .views { gap: 8px; }
  .views button { font-size: 12px; padding: 10px 14px; letter-spacing: .14em; }
  .eyebrow { font-size: 12px; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-mark img { height: 22px; }
  .grid { gap: 10px; }
  .views { gap: 4px 16px; }
  .card-cap { flex-direction: column; gap: 6px; padding: 10px 10px 12px; }
  .card-title { font-size: 16px; }
  .card-types { text-align: left; white-space: normal; }
  .band { grid-template-columns: 1fr; }
  .lb-close { top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover .card-media img, .card:hover .card-media video { transform: none; }
  .menu { transition: none; }
}

/* ---------- light skin fix-ups ---------- */
::selection { color: #000; }
.btn { color: #000; }                       /* type on neon is always black */
.btn:hover { color: var(--ink); }           /* black fill, white type on the page; white fill, black type on a dark band */
.eyebrow a:hover { background: #000; color: var(--neon) !important; border-color: #000; }
.nav { border-bottom-color: rgba(0, 0, 0, .1); }

/* the temporary mark: a K in Anton over a neon slash */
.nav-mark { position: relative; z-index: 0; }
.k-mark { position: relative; display: inline-block; font-family: var(--display); font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--bone); padding: 0 4px; }
.k-mark::before { content: ""; position: absolute; z-index: -1; left: -6px; right: -6px; top: 46%; height: 30%; background: var(--neon); transform: skewX(-14deg) rotate(-8deg); }
