@font-face {
  font-family: "JetBrains Mono Local";
  src: url("/assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Local";
  src: url("/assets/fonts/JetBrainsMono-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Local";
  src: url("/assets/fonts/JetBrainsMono-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src:
    url("/assets/fonts/Satoshi-Regular.woff2") format("woff2"),
    url("/assets/fonts/Satoshi-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src:
    url("/assets/fonts/Satoshi-Medium.woff2") format("woff2"),
    url("/assets/fonts/Satoshi-Medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #5a5a5a;
  --line: #000000;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-subtitle: "Archivo", Arial, sans-serif;
  --font-body: "Satoshi", "SFMono-Regular", Consolas, monospace;
  --max-width: 1100px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
}

/* Subtle print-grain texture over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Site header / nav — no box, floats over everything, auto-inverts via blend mode */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.site-logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9975rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #ffffff;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 60%;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.684rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 2px;
}

.site-nav a:not(.mail-icon)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a.is-active::after,
.site-nav a:not(.mail-icon):hover::after {
  transform: scaleX(1);
}

.site-nav a.mail-icon {
  display: flex;
  align-items: center;
}

.site-nav a.mail-icon svg {
  display: block;
}

/* Full-bleed hero */

.hero-full {
  position: relative;
}

.hero-photo-bleed {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 460px;
  overflow: hidden;
  background: #000;
}

.hero-photo-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo-bleed img {
    animation: hero-zoom 28s ease-in-out infinite alternate;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}

.hero-overlay-text {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  mix-blend-mode: difference;
  color: #fff;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.07em;
  margin: 4px 0 10px;
  transform: scale(1.55, 0.85);
  transform-origin: left;
}


@media (max-width: 720px) {
  .hero-photo-bleed {
    height: 62vh;
  }

  .hero-overlay-text {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* Generic placeholder tile (film grid, etc.) */

.placeholder-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 7px 7px;
  background-color: #fff;
}

.placeholder-box span {
  background: var(--bg);
  padding: 4px 10px;
  border: 1px solid var(--line);
}

/* Sections */

section.block {
  padding: 88px 0;
}

section.block.invert {
  background: #000000;
  color: #ffffff;
}

section.block.invert .placeholder-box {
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-color: #000;
}

section.block.invert .placeholder-box span {
  background: #000;
  color: #fff;
  border-color: #fff;
}

.block-heading {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  margin: 0 0 32px;
  line-height: 0.95;
  letter-spacing: 0.07em;
  transform: scale(1.55, 0.85);
  transform-origin: left;
}

.block-kicker {
  font-size: clamp(0.85rem, 1.7vw, 0.98rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
  opacity: 0.55;
}

/* .reveal.is-visible's opacity:1 (two classes) otherwise beats this
   element's own dimmed opacity (one class) once revealed, which is why
   the About kicker looked darker than the ones without .reveal. */
.block-kicker.reveal.is-visible {
  opacity: 0.55;
}

.block-kicker::before {
  content: "+ ";
}

.bio-text {
  /* No width cap: .wrap is centered on the page, so filling its full
     content width keeps the left/right gaps to the page edge equal. */
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.bio-text.is-placeholder {
  font-style: italic;
  opacity: 0.55;
}

.credits-note {
  margin-top: 24px;
  font-size: 0.8rem;
  opacity: 0.55;
  font-style: italic;
}

.discog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.discog-entry {
  padding: 24px 0;
}

.discog-entry + .discog-entry {
  border-top: 1px solid var(--line);
}

.discog-date {
  font-size: clamp(0.85rem, 1.7vw, 0.98rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 8px;
}

.discog-title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.discog-title a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discog-role {
  font-size: 0.85em;
  opacity: 0.55;
}

.discog-role::before {
  content: "\2014 ";
}

.discog-tracklist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.discog-tracklist li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 6px 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.discog-tracklist a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Links / follow — plain text list, no buttons */

.link-pills {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 420px;
}

.link-pills li {
  border-top: 1px solid var(--line);
}

.link-pills li:last-child {
  border-bottom: 1px solid var(--line);
}

.link-pills a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding: 16px 2px;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.link-pills a::after {
  content: "↗";
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.link-pills a:hover::after {
  transform: translate(3px, -3px);
}

/* Craft — journal / substack-style entries, most recent first */

.journal-entry {
  padding: 56px 0;
}

.journal-entry + .journal-entry {
  border-top: 1px solid var(--line);
}

/* Collapsible <details> sections — journal entries, About, Discography.
   The content row is animated 0fr -> 1fr on open/close (a "grid-rows
   accordion") instead of an instant display:none, so collapsing doesn't
   snap the rest of the page into its new position. */
.collapsible {
  display: grid;
  grid-template-rows: auto 0fr;
}

.collapsible[open] {
  grid-template-rows: auto 1fr;
}

@media (prefers-reduced-motion: no-preference) {
  .collapsible {
    transition: grid-template-rows 0.35s ease;
  }

  .collapsible .journal-title,
  .collapsible .block-kicker {
    transition: margin-bottom 0.35s ease;
  }
}

.collapsible > summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 20px;
  grid-row: 1;
}

/* Overrides the UA default of hiding non-summary children outright when
   closed — display stays block always; the grid row height (above) is
   what actually hides the content, which is what makes it animatable. */
.collapsible > *:not(summary) {
  grid-row: 2;
  overflow: hidden;
  min-height: 0;
  display: block;
}

.collapsible > summary::-webkit-details-marker {
  display: none;
}

.collapsible > summary::before {
  content: "\2212";
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(0.85rem, 1.7vw, 0.98rem);
  opacity: 0.55;
}

.collapsible:not([open]) > summary::before {
  content: "+";
}

/* The dynamic +/- to the left of the summary replaces the kicker's own
   static "+ " prefix so there isn't a marker on both sides. */
.collapsible > summary .block-kicker::before {
  content: none;
}

.collapsible:not([open]) > summary .journal-title,
.collapsible:not([open]) > summary .block-kicker {
  margin-bottom: 0;
}

.journal-date {
  font-size: clamp(0.85rem, 1.7vw, 0.98rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 12px;
}

.journal-title {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.19rem, 3.06vw, 2.04rem);
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: 0.07em;
}

.journal-subheading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1em;
  margin: 1.5em 0 16px;
}

.journal-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  overflow: hidden;
  object-fit: cover;
  background: #000;
}

.journal-body {
  /* No width cap: .wrap is centered on the page, so filling its full
     content width keeps the left/right gaps to the page edge equal. */
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.journal-body p {
  margin: 0 0 1em;
}

.journal-body p:last-child {
  margin-bottom: 0;
}

.journal-body p.is-placeholder {
  font-style: italic;
  opacity: 0.55;
}

.journal-photo {
  float: right;
  width: 220px;
  max-width: 42%;
  margin: 4px 0 16px 22px;
  display: block;
}

.journal-photo-pair {
  float: right;
  width: 220px;
  max-width: 42%;
  margin: 4px 0 16px 22px;
  display: grid;
  gap: 8px;
}

.journal-photo-pair img {
  display: block;
  width: 100%;
}

.journal-body p.is-clear {
  clear: both;
}

@media (max-width: 640px) {
  .journal-photo,
  .journal-photo-pair {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 20px;
  }
}

/* Film — masonry grid, positioned in JS (see scripts.js) so every column's
   gaps stay pixel-exact instead of snapping to CSS grid row units. */

.film-grid-uniform {
  position: relative;
  width: 100%;
}

.film-tile-wrap {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  overflow: hidden;
}

.film-tile {
  width: 100%;
  height: 100%;
}

.film-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
  cursor: zoom-in;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  padding: 8px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  padding: 14px;
}

.lightbox-prev {
  left: 8px;
}

.lightbox-next {
  right: 8px;
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.3rem;
    padding: 10px;
  }
}

.film-caption {
  margin-top: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.55;
}


/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-socials a {
  display: flex;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.footer-socials a:hover {
  opacity: 1;
}
