@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #050505;
  --text: #f3f3f1;
  --muted: #8f8f8c;
  --line: #30302e;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   HEADER
   ======================================== */

.site-header,
main,
.site-footer {
  width: min(calc(100% - 88px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 118px;
  padding: 28px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand {
  width: 205px;
  display: block;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  gap: 38px;
  padding-top: 18px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

nav a {
  color: var(--muted);
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a.active::after {
  content: '';
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 10px;
  background: var(--text);
}


/* ========================================
   HOMEPAGE HERO
   ======================================== */

.hero-intro {
  max-width: 900px;
  padding: 110px 0 72px;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #aaa9a6;
}

.hero-intro h1 {
  margin: 0 0 34px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .96;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-transform: none;
}

.hero-role {
  display: block;
  white-space: nowrap;
}

.hero-intro h1 .hero-line {
  display: block;
}

.hero-role .slash-prefix {
  display: inline-block;
  width: 0;
  position: relative;
  left: -0.7em;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.5em;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0;
  vertical-align: 0;
}

.hero-role .slash-suffix {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.5em;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.8em;
  margin-left: 0.15em;
  vertical-align: 0;
}

.intro-copy {
  margin: 0;
  max-width: 690px;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: #aaa9a6;
}

/* ========================================
   PORTFOLIO HERO
   ======================================== */

.portfolio-hero {
  max-width: 900px;
  padding: 110px 0 72px;
}

.portfolio-hero h1 {
  margin: 0 0 34px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.96;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
}

.portfolio-hero h1 .slash-prefix,
.portfolio-hero h1 .slash-suffix {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .5em;
  font-weight: 100;
  color: rgba(255,255,255,.08);
  vertical-align: 0;
}

.portfolio-hero h1 .slash-prefix {
  display: inline-block;
  width: 0;
  position: relative;
  left: -.7em;
}

.portfolio-hero h1 .slash-suffix {
  letter-spacing: .8em;
  margin-left: .15em;
}

/* ========================================
   DISCIPLINE CARDS
   ======================================== */

.discipline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.discipline-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #30302f;
  isolation: isolate;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.14);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.discipline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.35) 48%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.discipline-card:hover .card-image {
  transform: scale(1.09);
  filter: brightness(1.08);
}

.card-content {
  position: absolute;
  inset: auto 28px 28px;
}

.card-content h1 {
  margin: 0 0 16px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(2.2rem, 3.3vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.card-bottom p {
  margin: 0;
  color: #d4d4d0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
}

.card-bottom p span {
  color: #858581;
  padding: 0 8px;
}

.card-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 1.35rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.discipline-card:hover .card-arrow {
  background: var(--text);
  color: #050505;
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  padding: 54px 0 38px;
  display: flex;
  justify-content: space-between;
  color: #777773;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-footer div {
  display: flex;
  gap: 12px;
}

.site-footer a:hover {
  color: var(--text);
}


/* ========================================
   PORTFOLIO / ABOUT PAGES
   ======================================== */

.portfolio-page,
.about-page {
  width: min(calc(100% - 88px), var(--max));
  margin-inline: auto;
}

.page-heading {
  padding: 80px 0 58px;
  max-width: 820px;
}

.page-heading h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.page-heading > p:last-child {
  color: var(--muted);
  max-width: 650px;
}


/* ========================================
   PROJECT LIST
   ======================================== */


.project-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: transparent;
}

.project-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #30302f;
  pointer-events: none;
}

.project {
  background: var(--bg);
  padding-bottom: 34px;
  border-bottom: 1px solid #30302f;
}

.project:last-child {
  border-bottom: none;
}

.project-grid {
  column-gap: 0;
}

.project-featured {
  grid-column: 1 / -1;
}

.project-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
}

.placeholder {
  display: grid;
  place-items: center;
  background: #181817;
  color: #555551;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-info {
  padding: 0 24px;
}

.project-role {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aaa9a6;
}

.project-info h2 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.project-info p:not(.project-role) {
  display: none;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ========================================
   ABOUT
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  padding: 5vh 0 15vh;
  border-top: 1px solid var(--line);
}

.about-grid h2,
.contact h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.about-grid p {
  max-width: 550px;
  color: var(--muted);
}

.contact {
  padding: 8vh 0;
  border-top: 1px solid var(--line);
}

.email {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 900px) {

  .site-header {
    min-height: auto;
  }

  .brand {
    width: 185px;
  }

  nav {
    gap: 20px;
  }

  .hero-intro {
    padding-top: 72px;
  }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 720px) {

  .site-header,
  main,
  .site-footer,
  .portfolio-page,
  .about-page {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    display: block;
    padding-top: 22px;
  }

  .brand {
    width: 190px;
    margin-bottom: 24px;
  }

  nav {
    gap: 14px 18px;
    padding-top: 0;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.62rem;
  }

  .hero-intro {
    padding: 44px 0 34px;
  }

  .eyebrow {
    line-height: 1.8;
  }

  .discipline-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .discipline-card {
    min-height: 360px;
  }

  .card-content {
    inset: auto 20px 20px;
  }

  .card-content h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .card-bottom {
    align-items: center;
  }

  .card-bottom p {
    font-size: 0.62rem;
    line-height: 1.8;
  }

  .card-bottom p span {
    padding: 0 4px;
  }

  .card-arrow {
    width: 42px;
    height: 42px;
  }

  .site-footer {
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-list::before {
    display: none !important;
  }

  .project-right {
    border-left: none !important;
  }

  .project-featured {
    grid-column: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .portfolio-hero {
    padding: 44px 0 34px;
  }

  .portfolio-hero h1 {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }
}

/* ========================================
   YOUTUBE PROJECT MEDIA
   ======================================== */

.project-link-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #181817;
}

.project-link-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.project-link-media:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.play-icon {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: .75rem;
  padding-left: 2px;
  backdrop-filter: blur(4px);
  transition: background .3s ease, transform .3s ease;
}

.project-link-media:hover .play-icon {
  background: rgba(0, 0, 0, .7);
  transform: scale(1.06);
}

/* Music page — compact SoundCloud cards */
.music-page .project {
  min-height: 0;
  height: auto;
}

.music-page .soundcloud-media {
  width: 100%;
  min-height: 166px;
  height: 166px;
}

.music-page .soundcloud-player {
  display: block;
  width: 100%;
  height: 166px;
}

.music-page .project-info {
  padding-top: 24px;
}  

/* Page transitions */
body {
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.page-transition {
  opacity: 0;
}
