@font-face {
  font-family: 'ABC Pelikan';
  src: url('fonts/ABCPelikan-Regular-Trial.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'ABC Pelikan';
  src: url('fonts/ABCPelikan-Book-Trial.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'ABC Pelikan';
  src: url('fonts/ABCPelikan-BookItalic-Trial.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

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

body {
  font-family: 'ABC Pelikan', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background-color: #fff;
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  font-size: 14px;
  font-weight: 300;
}

.nav-name,
.nav-link {
  font-weight: 300;
  color: #999;
}

.nav-name:hover,
.nav-link:hover,
.nav-link.active,
.nav-name.active {
  color: #1a1a1a;
}

.nav-link:hover,
.nav-link.active {
  color: #1a1a1a;
}

/* HOMEPAGE */
.homepage {
  padding: 0 40px 80px 40px;
}

.homepage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.left-column img,
.right-column img {
  width: 100%;
  height: auto;
  display: block;
}

.right-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.right-column a:last-of-type {
  margin-top: auto;
}

.intro {
  width: 100%;
  max-width: 660px;
  height: auto;
  padding: 0 0 50px 0;
}

.intro-title {
  font-size: 32px;
  line-height: 38px;
  color: #999;
}

.intro-title em {
  font-style: italic;
}

.project-categories {
  list-style: none;
  margin-top: 24px;
}

.project-categories li {
  display: flex;
  justify-content: space-between;
  font-size: 32px;
  line-height: 40px;
}

.project-categories li {
  color: #999;
}
.category-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: inherit;
  transition: color 0.2s ease;
}

.category-link:hover {
  color: #1a1a1a;
}

.right-column img {
  margin-top: auto;
}

.image-caption {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 16px;
  font-size: 14px;
  color: #999;
}

/* ============================================
   CASE STUDY GRID VARIABLES
   ============================================ */
:root {
  --margin: 40px;
  --gutter: 40px;
  --columns: 12;
  --vertical-gap: 80px;
  --crossover: 140px;
}

/* ============================================
   CASE STUDY LAYOUT
   ============================================ */
.case-study {
  position: relative;
  padding: 0 var(--margin);
}

.case-index {
  flex: 1;
  font-size: 20px;
  font-family: 'ABC Pelikan', sans-serif;
  font-weight: 300;
}

.case-header {
  flex: 1;
}
.case-index ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.case-index li {
  display: flex;
  justify-content: space-between;
  color: #999;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.case-top {
  display: flex;
  gap: var(--gutter);
  align-items: flex-start;
}

.index-number {
  font-family: 'ABC Pelikan', sans-serif;
  font-weight: 300;
}

.case-title {
  font-size: 32px;
  font-weight: 300;
  color: #111;
}

.case-type {
  font-size: 32px;
  font-weight: 300;
  font-style: italic;
  color: #999;
}

.case-intro {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #444;
  width: 100%;
}
.case-grid {
  clear: both;
  position: relative;
  margin-top: 100px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--vertical-gap);
}

.grid-item {
  display: block;
  width: 100%;
  height: auto;
}

.item-web {
  grid-column: 1 / 9;
  grid-row: 1;
}

.item-billboard {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: start;
}

.item-window {
  grid-column: 7 / 13;
  grid-row: 2;
}

.item-logos {
  grid-column: 1 / 7;
  grid-row: 2;
}

.item-research {
  grid-column: 3 / 13;
  grid-row: 3;
}

.item-tshirt {
  grid-column: 1 / 7;
  grid-row: 4;
}

.item-notebook {
  grid-column: 7 / 13;
  grid-row: 4;
}

.item-brainrot-envelope {
  grid-column: 1 / 9;
  grid-row: 1;
}

.item-brainrot-typography {
  grid-column: 6 / 13;
  grid-row: 2;
}

.item-brainrot-badges {
  grid-column: 1 / 9;
  grid-row: 3;
}

.item-brainrot-stones {
  grid-column: 7 / 13;
  grid-row: 4;
}

.item-papanugs-vinyl-hands {
  grid-column: 1 / 9;
  grid-row: 1;
}

.item-papanugs-animation-box {
  grid-column: 1 / 13;
  grid-row: 2;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1363 / 856;
  position: relative;
}

.item-papanugs-animation-box video {
  width: calc(775 / 1363 * 100%);
  height: auto;
  display: block;
}
.item-papanugs-labels-green {
  grid-column: 5 / 13;
  grid-row: 3;
}

.item-papanugs-sleeve-a {
  grid-column: 1 / 7;
  grid-row: 4;
}

.item-papanugs-sleeve-b {
  grid-column: 7 / 13;
  grid-row: 4;
}

.item-hercle-web {
  grid-column: 1 / 9;
  grid-row: 1;
}

.item-hercle-laptop {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: start;
}

.item-hercle-stage {
  grid-column: 7 / 13;
  grid-row: 2;
}

.item-hercle-logo {
  grid-column: 1 / 7;
  grid-row: 3;
}

.item-hercle-wayfinding {
  grid-column: 1 / 7;
  grid-row: 4;
}

.item-hercle-shape {
  grid-column: 3 / 13;
  grid-row: 5;
}

.item-hercle-ui {
  grid-column: 1 / 11;
  grid-row: 6;
}

.about-page {
  padding: 0 var(--margin);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  margin-top: 80px;
}

.about-left {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
}

.about-right {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
}

.contact-label {
  color: #999;
}

.contact-value {
  color: #1a1a1a;
}

.contact-value:hover {
  color: #999;
}

.about-name {
  margin-top: 52px;
  font-size: 40px;
  line-height: 1.1;
  color: #999;
}
.about-name em {
  font-style: italic;
}

.about-bio {
  font-size: 18px;
  line-height: 1.5;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-clients {
  list-style: none;
  font-size: 22px;
}

.about-clients li {
  display: flex;
  justify-content: space-between;
  color: #999;
  padding: 4px 0;
}

.client-number {
  font-family: 'ABC Pelikan', sans-serif;
  font-weight: 300;
}

.item-response-animation {
  grid-column: 4 / 13;
  grid-row: 1;
}

.item-response-poster {
  grid-column: 1 / 10;
  grid-row: 2;
}

.item-response-specimen {
  grid-column: 4 / 13;
  grid-row: 3;
}

.case-footer {
  clear: both;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 0 80px;
  font-size: 14px;
}

.case-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #999;
  transition: color 0.2s ease;
}

.case-nav-link:hover {
  color: #111;
}

.arrow {
  font-size: 16px;
}

.video-wrapper {
  position: relative;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.mute-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s ease;
  z-index: 10;
}

.mute-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
}

.mute-toggle svg {
  width: 16px;
  height: 16px;
}

.icon-muted { display: none; }
.icon-sound { display: block; }

.mute-toggle:not(.unmuted) .icon-muted { display: block; }
.mute-toggle:not(.unmuted) .icon-sound { display: none; }

.grid-item {
  opacity: 0.2;
  transition: opacity 0.8s ease-out;
}

.grid-item.in-view {
  opacity: 1;
}

@media (max-width: 480px) {
  .navbar {
    padding: 20px;
    font-size: 12px;
  }

  .homepage {
    padding: 20px 20px 40px 20px;
  }

  .homepage-grid {
    display: flex;
    flex-direction: column;
    row-gap: 0;
  }

  .right-column {
    display: contents;
  }

  .intro {
    order: -3;
    padding-bottom: 0;
    height: auto;
  }

  .intro-title {
    display: none;
  }

  .project-categories {
    margin-top: 0;
  }

  .project-categories li {
    font-size: 12px;
    line-height: 1.3;
    padding: 14px 0;
    border-bottom: 0.5pt solid #ccc;
  }

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

  .left-column {
    order: -2;
    margin-top: 35px;
  }

  .right-column > a {
    order: -1;
    padding-top: 35px;
  }

  .right-column .image-caption {
    order: 0;
  }

  .image-caption {
    margin-top: 0;
    padding-top: 8px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .case-study {
    padding: 0 20px;
  }

  .case-top {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
  }

  .case-intro {
    font-size: 10px;
    line-height: 1.5;
    margin-top: 4px;
  }

  .case-index {
    width: 100%;
    font-size: 12px;
  }

  .case-index ul {
    gap: 0;
  }

  .case-index li {
    border-bottom: 0.5pt solid #ccc;
    padding: 12px 0;
  }

  .case-index li:last-child {
    border-bottom: none;
  }

  .case-title,
  .case-type {
    font-size: 16px;
  }

 .case-header,
.case-intro {
  width: 100%;
}

  .case-grid {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    row-gap: 32px;
  }

  .item-web,
  .item-billboard,
  .item-window,
  .item-logos,
  .item-research,
  .item-tshirt,
  .item-notebook {
    grid-column: unset;
    grid-row: unset;
  }

  .case-footer {
    font-size: 12px;
    padding: 30px 0 30px;
  }

  .arrow {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .about-page {
    padding: 0 20px;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    row-gap: 40px;
  }

  .about-left,
  .about-right {
    display: contents;
  }

  .about-bio {
    order: -4;
  }

  .about-contact {
    order: -3;
  }

  .about-name {
    order: -2;
  }

  .about-clients {
    order: -1;
  }

  .about-bio p {
    font-size: 10px;
    line-height: 1.5;
  }

  .about-name {
    margin-top: 0;
    font-size: 15px;
  }

  .about-name p {
    font-size: 21px;
  }

  .about-clients {
    font-size: 12px;
  }

  .about-clients li {
    padding: 12px 0;
    border-bottom: 0.5pt solid #ccc;
  }

  .about-clients li:last-child {
    border-bottom: none;
  }

  .contact-row {
    font-size: 10px;
  }
}

@media (max-width: 1200px) and (min-width: 481px) {
  .homepage {
    padding: 0 24px 60px 24px;
  }

  .homepage-grid {
    gap: 24px;
  }

  .intro-title {
    font-size: 24px;
    line-height: 30px;
  }

  .project-categories li {
    font-size: 20px;
    line-height: 1.3;
    padding: 8px 0;
    border-bottom: 0.5pt solid #ccc;
  }

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

.image-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 16px;
    font-size: 12px;
  }
}

@media (max-width: 760px) and (min-width: 481px) {
  .homepage-grid {
    display: flex;
    flex-direction: column;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .right-column {
    display: contents;
  }

  .intro {
    order: -1;
  }

  .left-column {
    order: 0;
  }

  .right-column a {
    order: 1;
  }

  .right-column .image-caption {
    order: 2;
  }
@media (max-width: 760px) and (min-width: 481px) {
  .case-top {
    flex-direction: column;
  }

  @media (max-width: 760px) and (min-width: 481px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
  }

  .about-left,
  .about-right {
    width: 100%;
  }
}

  .case-index,
  .case-header {
    width: 100%;
  }

  .case-header {
    order: -1;
  }

  .case-index {
    order: 0;
  }

  .case-grid {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
  }

  .item-web,
  .item-billboard,
  .item-window,
  .item-logos,
  .item-research,
  .item-tshirt,
  .item-notebook,
  .item-brainrot-envelope,
  .item-brainrot-typography,
  .item-brainrot-badges,
  .item-brainrot-stones,
  .item-papanugs-vinyl-hands,
  .item-papanugs-animation-box,
  .item-papanugs-labels-green,
  .item-papanugs-sleeve-a,
  .item-papanugs-sleeve-b,
  .item-hercle-web,
  .item-hercle-laptop,
  .item-hercle-stage,
  .item-hercle-logo,
  .item-hercle-wayfinding,
  .item-hercle-shape,
  .item-hercle-ui,
  .item-response-animation,
  .item-response-poster,
  .item-response-specimen {
    grid-column: unset;
    grid-row: unset;
  }
}
}