:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #d8d8d8;
  --strong: #ffffff;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --rail: clamp(13.5rem, 21vw, 18.5rem);
}

/* :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --text: #d8d8d8;
  --strong: #ffffff;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --line: rgba(255,255,255,.14);
} */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#scrollTopBtn {
  position: fixed;

  bottom: 3rem;
  right: 4rem;

  width: 3.5rem;
  height: 3.5rem;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.85);
  color: white;

  cursor: pointer;

  font-size: 1.1rem;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;

  z-index: 1000;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  font-size: 3px;
}

button {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

svg {
  width: 0.8em;
  height: 0.8em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__links a {
  padding: 0.2rem 0;
}

.cursor,
.sound-field,
.scroll-cue {
  display: none;
}

.menu-toggle {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--strong);
  padding: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 998;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;

  width: min(22rem, 85vw);
  height: 100vh;

  background: var(--bg);

  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  padding: 3rem;

  /* Start off-screen to the left */
  transform: translateX(-100%);

  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 999;

  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--strong);
  font-size: 1.5rem;
}

.mobile-menu a:hover {
  color: #5f5f5f;
}

.menu-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2rem;
}

.menu-close {
  align-self: flex-end;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--strong);
}

/* Overlay visible */
body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Slide menu in */
body.menu-open .mobile-menu {
  transform: translateX(0);
}

body.menu-open #pageContent {
  filter: blur(4px);
  transition: filter 0.5s ease;
}

.site-header {
  position: fixed;
  top: 2rem;
  left: 2rem;

  display: block;

  padding: 0;
  background: transparent;
}

.identity__name {
  display: block;
  color: var(--strong);
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.identity p {
  max-width: 10.5rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.15;
}

.site-header nav {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-top: clamp(3rem, 8vh, 5.5rem);
  color: var(--text);
  font-size: clamp(1.03rem, 1.42vw, 1.35rem);
  line-height: 1.06;
}

.site-header nav span {
  margin: 1.45rem 0 0.42rem;
  color: var(--strong);
  font-size: clamp(1.18rem, 1.78vw, 1.7rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.site-header nav span:first-child {
  margin-top: 0;
}

.site-header nav a {
  color: var(--text);
  transition: color 150ms ease;
}

.site-header nav a:hover,
.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  text-transform: uppercase;
}

main {
  margin-left: var(--rail);
}

.section {
  width: min(100%, 1080px);
  margin: 0;
  padding: 30px;
}

.hero {
  min-height: auto;
  padding-top: clamp(6rem, 14vw, 10rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.hero__content h1 {
  display: block;
  color: var(--strong);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.hero__tagline {
  display: block;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.work-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1.8rem 0;
}

a {
  transition: opacity 0.2s ease;
}

.work-card,
.archive-item {
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
}

.hero__meta {
  max-width: 58rem;
}

.hero__meta p {
  margin: 0 0 2.2rem;
  color: var(--text);
  font-size: clamp(1.55rem, 2.35vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.text-link,
.work-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: clamp(1rem, 0.9vw, 1.15rem);
  line-height: 1;
}

.text-link:hover svg,
.work-card a:hover svg {
  transform: translate(0.12rem, -0.12rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  text-align: justify;
  text-justify: inter-word;
}

.section-kicker {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  color: var(--strong);
  font-size: clamp(1.18rem, 1.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.2rem);
  align-items: start;
}

.portrait-wrap {
  overflow: hidden;
  background: #eee;
}

.portrait-wrap::after {
  display: none;
}

.portrait-wrap img {
  width: 100%;
  min-height: 22rem;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
}

.about__copy {
  max-width: 48rem;
}

.about__copy h2,
.section-heading h2,
.contact h2 {
  max-width: 58rem;
  margin-bottom: 2rem;
  color: var(--strong);
  font-size: clamp(1.9rem, 3.25vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.about__copy .lead {
  color: var(--text);
  font-size: clamp(1.3rem, 2.12vw, 2.1rem);
  letter-spacing: -0.045em;
  line-height: 1.17;
}

.about__copy p,
.about__copy blockquote {
  color: var(--text);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  letter-spacing: -0.025em;
  line-height: 1.28;
}

blockquote {
  margin: 2.1rem 0 0;
  padding: 0;
  border: 0;
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.2rem;
  max-width: 58rem;
}

.filter-row button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.filter-row button::after {
  content: " /";
  color: var(--muted);
}

.filter-row button:last-child::after {
  content: "";
}

.filter-row button:hover,
.filter-row button.active {
  color: var(--accent);
}

.work-grid,
.archive-list,
.contact__inner {
  max-width: 58rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.work-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-bottom: 1.7rem;
}

.work-card__media {
  position: relative;
}

.work-card__media::after {
  display: none;
}

.work-card__media span {
  color: var(--accent);
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
}

.work-card__body > p:first-child {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.1;
}

.work-card h3 {
  margin-bottom: 0.55rem;
  color: var(--strong);
  font-size: clamp(1.45rem, 2.25vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.work-card p {
  max-width: 48rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.42vw, 1.35rem);
  letter-spacing: -0.025em;
  line-height: 1.24;
}

.archive-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-bottom: 1.75rem;
}

.archive-item > span {
  color: var(--accent);
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
}

.archive-item h3 {
  margin-bottom: 0.25rem;
  color: var(--strong);
  font-size: clamp(1.2rem, 1.75vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.archive-item p {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.18;
}

.contact__inner {
  display: grid;
  gap: 2rem;
}

.contact__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 3rem;
}

.contact__links a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 4rem;
  height: 4rem;

  color: var(--strong);
  text-decoration: none;

  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.contact__links a:hover {
  transform: translateY(-2px);
  opacity: 1;
  border-color: var(--strong);
}

.contact__links svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(0.6rem);
  transition:
    opacity 450ms ease,
    transform 450ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --rail: 0px;
  }

  .site-header {
    position: static;
    width: auto;
    padding: 1.4rem 1.2rem 0;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
    max-width: 34rem;
  }

  .site-header nav span {
    grid-column: 1 / -1;
  }

  .theme-toggle {
    margin-top: 2rem;
  }

  main {
    margin-left: 0;
  }

  .section {
    width: 100%;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media (max-width: 680px) {
  .site-header nav {
    display: flex;
  }

  .about__grid,
  .work-card,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .portrait-wrap img {
    min-height: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.site-footer {
  width: 100%;
  background: #ede9e3;
  color: black;
  margin-top: 10rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem;
}

.footer-top {
  justify-content: space-between;
  align-items: flex-end;

  gap: 4rem;

  padding-bottom: 3rem;
}

.footer-info h2 {
  color: #111;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.9;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.footer-info p {
  color: #5f5f5f;
  max-width: 32rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 1.5rem;

  color: #777;

  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-socials {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-socials a {
  color: #000000;
  font-size: 3rem;
  transition: all 0.25s ease;
}

.footer-socials a:hover {
  transform: scale(1.15);
}

/* Brand colors on hover */
.footer-socials .instagram:hover {
  background: linear-gradient(
    45deg,
    #ff921d,
    #f55d26,
    #fb2646,
    #cc2366,
    #bc1888
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-socials .soundcloud:hover {
  color: #ff5500;
}

.footer-socials .spotify:hover {
  color: #1db954;
}

.footer-socials .youtube:hover {
  color: #ff0000;
}

.footer-socials .email:hover {
  color: #8e8e8e;
}

.soundcloud_link:hover {
  color: #ff921d;
}

.youtube_link:hover {
  color: #ff0000;
}
