/* ============================================================
   GRINDOHOLIC NETWORK — pure black / bone white / 3× red / gold cursor
   Display: Anton · Body: Fraunces
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-normal-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0b0a08;
  --bone: #f2eee3;
  --bone-dim: rgba(242, 238, 227, 0.55);
  --ink-dim: rgba(11, 10, 8, 0.55);
  --red: #e02b20;
  --gold: #c9a227;
  --line-dark: rgba(242, 238, 227, 0.16);
  --line-light: rgba(11, 10, 8, 0.16);
  --display: "Anton", "Arial Narrow", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }

/* ---------- custom cursor: gold dot + trailing ring ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
}
.cursor-dot { width: 8px; height: 8px; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  transition: width .25s ease, height .25s ease, opacity .3s ease;
}
html.cursor-live .cursor-dot, html.cursor-live .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 64px; height: 64px; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  z-index: 100;
  mix-blend-mode: difference;
  color: var(--bone);
}
.logo {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.logo em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; margin-left: .35em; font-size: .95em; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-family: var(--serif);
  font-size: .8rem;
  font-weight: 480;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .8;
  transition: opacity .25s;
}
.nav-links a:hover { opacity: 1; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- section label ---------- */
.kicker {
  font-family: var(--serif);
  font-weight: 520;
  font-size: .75rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .6;
  display: flex;
  align-items: center;
  gap: .7em;
}
/* red use 2 of 3: the marker on SELECTED WORK */
.kicker .red-mark {
  width: .65em; height: .65em;
  background: var(--red);
  display: inline-block;
}

/* ---------- hero (bone stage, scrubbed ink) ---------- */
.hero-track { height: 300vh; position: relative; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bone);
  color: var(--ink);
}
#heroCanvas, #heroVideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2vw;
}
.hero-title {
  font-family: var(--display);
  font-size: 11.5vw;               /* two lines fill ~80% of viewport */
  line-height: .92;
  letter-spacing: .01em;
  color: var(--ink);
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title .line-2 { letter-spacing: .34em; margin-right: -.34em; font-size: .74em; }
.typeline {
  margin-top: 3.2vh;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1rem, 1.9vw, 1.5rem);
  color: var(--ink);
  min-height: 1.6em;
}
.typeline .caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--ink);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.scroll-cue {
  position: absolute;
  bottom: 3.5vh; left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 34px;
  background: var(--ink-dim);
  margin: 10px auto 0;
  animation: drop 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* ---------- kinetic manifesto ---------- */
.kinetic-track { height: 380vh; position: relative; background: var(--ink); }
.kinetic-stage {
  position: sticky; top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.kinetic-stage .kicker { position: absolute; top: 12vh; }
.kinetic-word {
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 15rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .01em;
  opacity: 0;
}
.kinetic-word.slam { animation: slam .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes slam {
  0%   { opacity: 0; transform: scale(2.7) rotate(-1.5deg); filter: blur(10px); }
  55%  { opacity: 1; transform: scale(.965) rotate(0deg);   filter: blur(0); }
  72%  { transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}
.kinetic-stage.shake { animation: shake .35s linear both; }
@keyframes shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 4px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0, 0); }
}
/* red use 1 of 3: the final slammed word */
.kinetic-word.is-red { color: var(--red); }
.kinetic-count {
  position: absolute; bottom: 10vh;
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .3em;
  opacity: .5;
}

/* ---------- shared section chrome ---------- */
.section { padding: 16vh var(--pad); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7vh;
  gap: 2rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  text-transform: uppercase;
  line-height: .95;
}
.section-head .count { font-family: var(--serif); font-style: italic; opacity: .5; font-size: 1rem; white-space: nowrap; }

/* ---------- selected work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }
.card {
  position: relative;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.card-media {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .5s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* four different crops of the same gallery dolly clip */
.card[data-crop="1"] .card-media video { object-position: 12% 40%; transform: scale(1.55); }
.card[data-crop="2"] .card-media video { object-position: 85% 55%; transform: scale(1.7); }
.card[data-crop="3"] .card-media video { object-position: 40% 70%; transform: scale(1.35); }
.card[data-crop="4"] .card-media video { object-position: 62% 25%; transform: scale(1.9); }
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 8, .85), rgba(11, 10, 8, 0) 55%);
}
.card:hover .card-media, .card:focus-within .card-media { opacity: 1; transform: scale(1); }
.card-body {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.8rem;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.card-index {
  position: absolute;
  top: 1.4rem; left: 1.8rem;
  font-family: var(--serif);
  font-style: italic;
  opacity: .45;
  font-size: .9rem;
}
.card h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.card:hover h3 { transform: translateX(10px); }
.card-meta {
  font-family: var(--serif);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  white-space: nowrap;
}

/* ---------- services (editorial two-column) ---------- */
.services-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}
@media (max-width: 860px) { .services-cols { grid-template-columns: 1fr; } }
.services-intro { position: sticky; top: 18vh; }
.services-intro h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.12;
  margin: .6em 0 .7em;
}
.services-intro p { max-width: 34ch; opacity: .68; font-size: 1.02rem; }
.service-list { list-style: none; }
.service-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.2rem;
  padding: 2rem 0 1.9rem;
  border-top: 1px solid var(--line-dark);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.service-row:last-child { border-bottom: 1px solid var(--line-dark); }
.service-row:hover { transform: translateX(12px); }
.service-num { font-family: var(--serif); font-style: italic; opacity: .45; padding-top: .35rem; }
.service-row h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: .45rem;
}
.service-row p { opacity: .62; max-width: 52ch; font-size: .98rem; }

/* ---------- people ---------- */
.people {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.people-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.people::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 8, .92) 8%, rgba(11, 10, 8, .25) 55%, rgba(11, 10, 8, .55));
}
.people-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14vh var(--pad) 10vh;
}
.people-inner h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  text-transform: uppercase;
  line-height: .95;
  margin: 2.5vh 0 6vh;
  max-width: 14ch;
}
.roster {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.roster li { background: rgba(11, 10, 8, .6); padding: 1.4rem 1.5rem; backdrop-filter: blur(2px); }
.roster .name { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; }
.roster .role { font-family: var(--serif); font-style: italic; opacity: .6; font-size: .9rem; margin-top: .3rem; }

/* ---------- footer ---------- */
.footer { padding: 18vh var(--pad) 4vh; background: var(--ink); }
.footer .kicker { margin-bottom: 6vh; }
.footer-cta {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 11rem);
  line-height: .95;
  text-transform: uppercase;
  max-width: 12ch;
}
.footer-cta a { display: inline-block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.footer-cta a:hover { transform: translateX(14px); }
/* red use 3 of 3: the fight word */
.footer-cta .red-word { color: var(--red); }
.footer-mail {
  display: inline-block;
  margin-top: 7vh;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--bone-dim);
  padding-bottom: .15em;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 12vh;
  padding-top: 2.5vh;
  border-top: 1px solid var(--line-dark);
  flex-wrap: wrap;
}
.socials { display: flex; gap: 1.8rem; list-style: none; }
.socials a {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .65;
  transition: opacity .25s;
}
.socials a:hover { opacity: 1; }
.colophon { font-size: .78rem; opacity: .45; font-style: italic; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.res-hero { padding: 26vh var(--pad) 8vh; }
.res-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  text-transform: uppercase;
  line-height: .95;
  margin: 2.5vh 0;
  max-width: 14ch;
}
.res-hero .sub { font-style: italic; opacity: .65; font-size: clamp(1rem, 1.6vw, 1.3rem); max-width: 46ch; }

.res-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
  padding: 0 var(--pad) 4vh;
}
.res-toolbar input[type="search"],
.res-toolbar select {
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--bone);
  font-family: var(--serif);
  font-size: .88rem;
  padding: .7rem 1rem;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.res-toolbar input[type="search"] { flex: 1 1 220px; }
.res-toolbar select { padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 49%, var(--bone-dim) 50%), linear-gradient(135deg, var(--bone-dim) 49%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.res-toolbar input:focus, .res-toolbar select:focus { outline: 1px solid var(--bone-dim); }
.res-count { padding: 0 var(--pad) 2vh; font-style: italic; opacity: .5; font-size: .85rem; }

.res-list { list-style: none; margin: 0 var(--pad) 14vh; border-top: 1px solid var(--line-dark); }
.res-item {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line-dark);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.res-item:hover { transform: translateX(12px); }
@media (max-width: 720px) { .res-item { grid-template-columns: 1fr; gap: .5rem; } }
.res-cat {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .55;
}
.res-item h3 { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.7rem); text-transform: uppercase; line-height: 1.1; }
.res-item .desc { opacity: .6; font-size: .95rem; max-width: 62ch; margin-top: .35rem; }
.res-meta { font-style: italic; font-size: .8rem; opacity: .5; white-space: nowrap; }
.res-empty { padding: 3rem 0; font-style: italic; opacity: .55; }

/* compact footer for subpages (keeps site-wide red count at exactly three) */
.footer-mini {
  padding: 8vh var(--pad) 4vh;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: baseline;
}
.footer-mini .logo { font-size: .95rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .kinetic-word.slam { animation: none; opacity: 1; }
  .kinetic-stage.shake { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
