@font-face {
  font-family: "Apfel Grotezk";
  src: url("../fonts/ApfelGrotezk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotezk";
  src: url("../fonts/ApfelGrotezk-Fett.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: "Apfel Grotezk", sans-serif;
  font-weight: 400;
  background-color: #f1f1ef;
  color: #2b2b2b;
  transition: background-color 400ms ease, color 400ms ease;
}

body.pdf-lightbox-open {
  overflow: hidden;
}

body.invert {
  background-color: #2b2b2b;
  color: #ffffff;
}

body.scroll-locked {
  overflow: hidden;
}

.color-wipe {
  position: fixed;
  inset: 0;
  z-index: 260;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

.color-wipe.is-active {
  transform: scaleY(1);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 250;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #2b2b2b;
  transition: background-color 400ms ease;
}

body.invert .scroll-progress-bar {
  background-color: #ffffff;
}

body.menu-open .scroll-progress {
  visibility: hidden;
}

body.custom-cursor {
  cursor: none;
}

body.custom-cursor a,
body.custom-cursor button {
  cursor: none;
}

.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #2b2b2b;
  pointer-events: none;
  z-index: 1001;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: background-color 400ms ease, opacity 200ms ease, width 250ms ease, height 250ms ease;
}

body.custom-cursor .cursor-circle {
  opacity: 1;
}

body.custom-cursor .cursor-circle.is-over-btn-pill {
  opacity: 0;
}

body.invert .cursor-circle,
body.menu-open .cursor-circle,
body.cursor-on-dark .cursor-circle {
  background-color: #ffffff;
}

body.invert.menu-open .cursor-circle {
  background-color: #2b2b2b;
}

.cursor-circle.is-hovering {
  width: 48px;
  height: 48px;
}

body.invert .hero-bio {
  color: #ffffff;
}

#education,
#projects,
#press,
#skills,
footer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
}

body.content-visible-2 footer,
body.project-page footer {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease, visibility 0s linear 0s;
}

body.invert #education,
body.invert #skills {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease, visibility 0s linear 0s;
}

body.content-visible-2 #projects,
body.content-visible-2 #press {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease, visibility 0s linear 0s;
}

.container {
  margin: 0 auto;
  max-width: 1400px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

h1 {
  font-family: "Apfel Grotezk", sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 0.9;
  color: #2b2b2b;
}

@media (min-width: 768px) {
  h1 {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 10rem;
  }
}

:root {
  --circle-size: 36px;
  --circle-top: 1.5rem;
  --circle-right: 1.25rem;
}

@media (min-width: 768px) {
  :root {
    --circle-size: 42px;
    --circle-top: 2rem;
    --circle-right: 2.5rem;
  }
}

.top-controls {
  position: fixed;
  top: var(--circle-top);
  right: var(--circle-right);
    z-index: 261;
  height: var(--circle-size);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.fixed-circle {
  flex-shrink: 0;
  width: var(--circle-size);
  height: var(--circle-size);
  border: none;
  border-radius: 50%;
  background-color: #2b2b2b;
  cursor: pointer;
    transition: transform 250ms ease,
    background-color 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

.fixed-circle:hover {
  transform: scale(1.15);
  animation: circleAura 650ms ease-out;
}

@keyframes circleAura {
  from {
    box-shadow: 0 0 0 0 rgba(43, 43, 43, 0.35);
  }
  to {
    box-shadow: 0 0 0 26px rgba(43, 43, 43, 0);
  }
}

.reveal-overlay.is-expanding ~ .top-controls .fixed-circle {
  background-color: #ffffff;
}

.reveal-overlay.is-expanding ~ .top-controls .fixed-circle:hover {
  animation-name: circleAuraWhite;
}

@keyframes circleAuraWhite {
  from {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  to {
    box-shadow: 0 0 0 26px rgba(255, 255, 255, 0);
  }
}

body.circle-invert .fixed-circle {
  background-color: #ffffff;
}

body.circle-invert .fixed-circle:hover {
  animation-name: circleAuraWhite;
}

body.invert .reveal-overlay.is-expanding ~ .top-controls .fixed-circle {
  background-color: #2b2b2b;
}

body.invert .reveal-overlay.is-expanding ~ .top-controls .fixed-circle:hover {
  animation-name: circleAura;
}

@media (prefers-reduced-motion: reduce) {
  .fixed-circle:hover {
    animation: none;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.reveal-overlay.is-expanding ~ .top-controls .lang-switch {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 300ms ease 300ms;
}

.lang-switch a {
  font-weight: 700;
  font-size: clamp(0.62rem, 2.7vw, 1.15rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 200ms ease;
}

@media (min-width: 768px) {
  .lang-switch a {
    font-size: 1.5rem;
  }
}

.lang-switch a:hover {
  color: #ffffff;
}

.lang-switch a[aria-current="true"] {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch {
    transition: none;
  }

  .reveal-overlay.is-expanding ~ .top-controls .lang-switch {
    transition: none;
  }
}

.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background-color: #2b2b2b;
  clip-path: circle(
    0px at calc(100% - var(--circle-right) - (var(--circle-size) / 2))
      calc(var(--circle-top) + (var(--circle-size) / 2))
  );
  transition: clip-path 550ms cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.reveal-overlay.is-expanding {
  clip-path: circle(
    150vmax at calc(100% - var(--circle-right) - (var(--circle-size) / 2))
      calc(var(--circle-top) + (var(--circle-size) / 2))
  );
  pointer-events: auto;
}

.reveal-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.reveal-overlay.is-expanding .reveal-content {
  opacity: 1;
  transition: opacity 300ms ease 300ms;
}

.reveal-logo {
  position: absolute;
  top: 1.5rem;
  left: 1.25rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: #ffffff;
}

@media (min-width: 768px) {
  .reveal-logo {
    top: 2rem;
    left: 2.5rem;
  }
}

body.invert .reveal-overlay {
  background-color: #f1f1ef;
}

body.invert .reveal-overlay .reveal-logo,
body.invert .reveal-overlay .footer-email,
body.invert .reveal-overlay .footer-copy,
body.invert .reveal-overlay .footer-social a {
  color: #2b2b2b;
}

body.invert .reveal-overlay .footer-email {
  text-shadow: none;
}

body.invert .reveal-overlay .pill-new {
  background-color: #2b2b2b;
  color: #ffffff;
}

body.invert .reveal-overlay.is-expanding ~ .top-controls .lang-switch a {
  color: rgba(43, 43, 43, 0.55);
}

body.invert .reveal-overlay.is-expanding ~ .top-controls .lang-switch a:hover,
body.invert .reveal-overlay.is-expanding ~ .top-controls .lang-switch a[aria-current="true"] {
  color: #2b2b2b;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-overlay {
    transition: none;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #f1f1ef;
  transition: opacity 300ms ease, transform 300ms ease;
}

header.header--hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

nav {
  padding-top: 1.5rem;
  padding-left: 0.75rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  nav {
    padding-left: 1.5rem;
    padding-right: 2.5rem;
  }
}

.logo {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: inherit;
}

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

.hero-photo-wrap {
  width: 100%;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 900 / 1200;
  overflow: hidden;
  border-radius: 24px;
  transition: opacity 400ms ease;
}

body.content-visible .hero-photo-wrap {
  opacity: 0;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-bio {
  margin-top: 5rem;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.05;
  color: #2b2b2b;
  transition: color 400ms ease, opacity 400ms ease;
}

body.content-visible .hero-bio {
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-bio {
    margin-left: 8.33%;
    margin-right: 8.33%;
    font-size: 4rem;
  }

  #education,
  #projects,
  #press,
  #skills {
    margin-left: 8.33%;
    margin-right: 8.33%;
  }
}

@media (min-width: 1024px) {
  .hero-bio {
    font-size: 6rem;
  }
}

.hero-bio p + p {
  margin-top: 0.4em;
}

.hero-bio-gap {
  height: 8vh;
}

.category-title {
  font-weight: 700;
  font-size: 2rem;
  line-height: 0.9;
  text-align: left;
  margin: 3rem 0 0;
}

.category-title:first-child {
  margin-top: 0;
}

.category-title:not(:first-child) {
  border-top: 1px solid rgba(43, 43, 43, 0.15);
  padding-top: 3rem;
}

body.invert .category-title:not(:first-child) {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.category-title,
.experience-list li,
.project-card,
.skills-marquee,
.press-marquee {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.category-title.is-visible,
.experience-list li.is-visible,
.project-card.is-visible,
.skills-marquee.is-visible,
.press-marquee.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.is-visible {
  transition: opacity 600ms ease, transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card.is-visible:hover {
  transform: translateY(-8px) scale(1.03);
  z-index: 2;
}

@media (min-width: 768px) {
  .category-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .category-title {
    font-size: 6rem;
  }
}

.experience-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.experience-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.experience-list li + li {
  margin-top: 1rem;
}

.entry-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entry-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.experience-list h3 {
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
}

@media (min-width: 768px) {
  .experience-list h3 {
    font-size: 2.5rem;
  }
}

.experience-list p {
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0;
}

@media (min-width: 768px) {
  .experience-list p {
    font-size: 1.5rem;
  }
}

.experience-list p.entry-date {
  font-weight: 400;
  font-size: 1.1rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .experience-list p.entry-date {
    font-size: 1.3rem;
  }
}

.experience-list p.entry-role {
  font-weight: 700;
  font-size: 1.3rem;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .experience-list p.entry-role {
    font-size: 1.6rem;
  }
}

.btn-pill {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.7em 1.9em;
  border-radius: 999px;
  background-color: #2b2b2b;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 380ms ease;
}

.btn-pill::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 0%;
    border-radius: 999px;
  background-color: #ffffff;
  transition: height 420ms cubic-bezier(0.65, 0, 0.35, 1),
    left 420ms cubic-bezier(0.65, 0, 0.35, 1),
    right 420ms cubic-bezier(0.65, 0, 0.35, 1),
    bottom 420ms cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-pill span {
  position: relative;
  z-index: 1;
}

.btn-pill:hover {
  color: #2b2b2b;
}

.btn-pill:hover::before {
    left: -10px;
  right: -10px;
  bottom: -10px;
  height: calc(100% + 20px);
}

.btn-pill--light {
  background-color: #ffffff;
  color: #2b2b2b;
  pointer-events: none;
}

.btn-pill--light::before {
  background-color: #2b2b2b;
}

@media (prefers-reduced-motion: reduce) {
  .btn-pill::before {
    transition: none;
  }
}

#press {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 43, 43, 0.15);
}

.press-marquee {
  margin-top: 1.9rem;
  margin-left: -4%;
  margin-right: -4%;
  width: calc(100% + 8%);
  overflow: hidden;
  display: flex;
    -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.press-track {
  display: flex;
  flex-shrink: 0;
  gap: 2.75rem;
    padding-top: 3.2rem;
  padding-bottom: 3.2rem;
    padding-right: 2.75rem;
  }

.press-card {
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 240px;
  height: 300px;
  padding: 14px 14px 58px;
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(43, 43, 43, 0.25);
  display: block;
  text-decoration: none;
  color: inherit;
  transform: translateY(var(--arc-y, 0px)) rotate(var(--tilt, 0deg));
  transition: translate 650ms cubic-bezier(0.22, 1.4, 0.36, 1),
    scale 650ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

.press-card:hover {
  translate: 0 -8px;
  scale: 1.03;
  z-index: 2;
}

.press-track a:nth-child(5n + 1) {
  --tilt: -10deg;
  --arc-y: 26px;
}

.press-track a:nth-child(5n + 2) {
  --tilt: -5deg;
  --arc-y: 8px;
}

.press-track a:nth-child(5n + 3) {
  --tilt: 0deg;
  --arc-y: -8px;
}

.press-track a:nth-child(5n + 4) {
  --tilt: 5deg;
  --arc-y: 8px;
}

.press-track a:nth-child(5n + 5) {
  --tilt: 10deg;
  --arc-y: 26px;
}

@media (min-width: 768px) {
  .press-card {
    width: 280px;
    height: 340px;
    padding: 16px 16px 68px;
  }
}

.press-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.press-brand img {
  max-width: 100%;
  max-height: 38%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.85;
}

.press-brand img[src*="emporda.png"],
.press-brand img[src*="telecinco.png"],
.press-brand img[src*="diaridecatalunya.png"] {
  max-height: 31%;
}

.press-brand img[src*="roses.png"] {
  max-height: 48%;
}

@media (min-width: 768px) {
  .press-brand {
    height: 68px;
    padding: 0 16px;
  }
}

.press-photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.press-photo picture {
  display: contents;
}

.press-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

.press-card:hover .press-photo img {
  transform: scale(1.05);
}

.press-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.press-headline {
  margin: 0.3rem 0 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: #ffffff;
}

#projects {
  margin-top: 3rem;
  padding-top: 2rem;
}

.projects-grid {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.project-card {
  position: relative;
  width: 260px;
  border-radius: 12px;
}

.project-card img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.pill-new.project-card-pill {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  z-index: 2;
  background-color: #2b2b2b;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 0.3em 0.85em;
}

@media (max-width: 767px) {
  .projects-grid {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 8%;
    margin-left: -6%;
    margin-right: -6%;
    padding: 2rem 6% 1.5rem;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }

  .projects-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .project-card {
    flex: 0 0 58%;
    width: auto;
    max-width: 230px;
    aspect-ratio: 711 / 1006;
    scroll-snap-align: center;
    user-select: none;
    -webkit-user-drag: none;
  }

  .project-card img {
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
  }
}

#skills {
  margin-top: 3rem;
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(43, 43, 43, 0.15);
}

body.invert #skills {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.skills-marquee {
  margin-top: 2.75rem;
  margin-left: -4%;
  margin-right: -4%;
  width: calc(100% + 8%);
  overflow: hidden;
  display: flex;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.skills-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3rem;
  padding-right: 3rem;
  animation: skillsMarquee 26s linear infinite;
}

@keyframes skillsMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.skill-item {
  flex: 0 0 auto;
  width: clamp(56px, 9vw, 96px);
  height: clamp(56px, 9vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
    filter: grayscale(1);
}

@media (prefers-reduced-motion: reduce) {
  .skills-track {
    animation: none;
  }
}

footer {
  display: block;
  margin-top: 7rem;
}

.footer-photo {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.footer-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(43, 43, 43, 0.55);
}

.footer-email {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 72%;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 0.9;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.email-chunk {
  opacity: 0;
  transition: opacity 200ms ease;
}

.footer-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem 0.9rem 1.25rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    gap: 1.5rem;
    padding: 2.5rem 1.5rem 1.25rem 2.5rem;
  }
}

.footer-copy,
.footer-social a {
  margin: 0;
  font-weight: 700;
  font-size: clamp(0.62rem, 2.7vw, 1.15rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer-copy,
  .footer-social a {
    font-size: 1.5rem;
  }
}

.footer-social {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  transition: transform 200ms ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.pill-new {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background-color: #ffffff;
  color: #2b2b2b;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.breadcrumb {
  margin-top: 2rem;
  font-size: 0.95rem;
  opacity: 0.7;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

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

.breadcrumb li {
  display: flex;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.4rem;
  opacity: 0.6;
}

.project-hero {
  margin-top: 2.5rem;
}

.project-title {
  margin: 0;
}

.project-title img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .project-title img {
    max-width: 460px;
  }
}

@media (min-width: 1024px) {
  .project-title img {
    max-width: 600px;
  }
}

.project-tagline {
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 720px;
}

@media (min-width: 768px) {
  .project-tagline {
    font-size: 1.3rem;
  }
}

.project-pdf-viewer {
  margin: 2.5rem auto 0;
  max-width: 760px;
}

.pdf-spread {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 16px;
  background-color: rgba(43, 43, 43, 0.04);
}

.pdf-spread picture {
  flex: 1 1 0;
  min-width: 0;
}

.pdf-spread img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(43, 43, 43, 0.15);
  transition: opacity 200ms ease;
}

@media (max-width: 560px) {
  .pdf-spread [data-side="right"] {
    display: none;
  }

  .pdf-expand {
    display: none;
  }
}

.pdf-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 2.5rem;
  margin-top: 1rem;
}

.pdf-controls button,
.pdf-controls .pdf-download {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background-color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  color: #2b2b2b;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 380ms ease, opacity 200ms ease;
}

.pdf-controls button span,
.pdf-controls .pdf-download span {
  position: relative;
  z-index: 1;
  display: flex;
}

.pdf-controls svg {
  display: block;
}

.pdf-prev svg {
  transform: scaleX(-1);
}

.pdf-controls button::before,
.pdf-controls .pdf-download::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 0%;
  border-radius: 999px;
  background-color: #2b2b2b;
  transition: height 420ms cubic-bezier(0.65, 0, 0.35, 1),
    left 420ms cubic-bezier(0.65, 0, 0.35, 1),
    right 420ms cubic-bezier(0.65, 0, 0.35, 1),
    bottom 420ms cubic-bezier(0.65, 0, 0.35, 1);
}

.pdf-controls button:hover:not(:disabled)::before,
.pdf-controls .pdf-download:hover::before {
  left: -10px;
  right: -10px;
  bottom: -10px;
  height: calc(100% + 20px);
}

.pdf-controls button:hover:not(:disabled),
.pdf-controls .pdf-download:hover {
  color: #ffffff;
}

.pdf-expand,
.pdf-collapse {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pdf-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .pdf-controls button::before,
  .pdf-controls .pdf-download::before {
    transition: none;
  }
}

.pdf-page-indicator {
  min-width: 5.5rem;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(43, 43, 43, 0.6);
}

.pdf-lightbox[hidden] {
  display: none;
}

.pdf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.pdf-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.85);
}

.pdf-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 92vw;
  max-height: 92vh;
}

.pdf-lightbox-spread {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  min-height: 0;
}

.pdf-lightbox-spread img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 200ms ease;
}

.pdf-lightbox-content .pdf-controls {
  align-self: stretch;
  margin-top: 0;
}

.pdf-lightbox-content .pdf-controls button,
.pdf-lightbox-content .pdf-controls .pdf-download {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.pdf-lightbox-content .pdf-controls button::before,
.pdf-lightbox-content .pdf-controls .pdf-download::before {
  background-color: #ffffff;
}

.pdf-lightbox-content .pdf-controls button:hover:not(:disabled),
.pdf-lightbox-content .pdf-controls .pdf-download:hover {
  color: #2b2b2b;
}

.pdf-lightbox-content .pdf-page-indicator {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 700px) {
  .pdf-lightbox-spread {
    flex-direction: column;
    overflow-y: auto;
    max-height: 76vh;
  }

  .pdf-lightbox-spread img {
    max-height: none;
  }
}

.project-body {
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.project-section-title {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 0.95;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 43, 43, 0.15);
}

@media (min-width: 768px) {
  .project-section-title {
    font-size: 2.5rem;
  }
}

.project-body p {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.project-figure {
  margin: 3rem auto;
  max-width: 680px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.project-figure img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.project-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(43, 43, 43, 0.55);
}

@media (min-width: 768px) {
  .project-figure figcaption {
    font-size: 0.9rem;
  }
}

.project-figure figcaption a {
  color: inherit;
}

@media (min-width: 768px) {
  .project-body p {
    font-size: 1.3rem;
  }

  .project-page .breadcrumb,
  .project-page article {
    margin-left: 8.33%;
    margin-right: 8.33%;
  }
}

.project-page header {
  position: static;
}

.media-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.media-grid-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.media-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 650ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

.media-grid-item:hover img {
  transform: scale(1.05);
}

.project-back-link {
  margin-top: 3rem;
  text-align: center;
}

