body {
  min-height: 100vh;
  overflow: auto;
  margin: 0;
  padding: 0;
  position: relative;

  background:
    conic-gradient(
      from 90deg at 1px 1px,
      transparent 90deg,
      #313131 0
    )
    0 0 / 50px 50px,
    #1c1c1e;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image: url("images/paper-texture.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: repeat;

  opacity: 0.4;
  mix-blend-mode: soft-light;
}

@font-face {
  font-family: 'Quanta Grotesk Pro';
  src: url('fonts/QuantaGroteskPro-Bold.otf') format('opentype');
  font-weight: 700;
}

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

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/CabinetGrotesk-Bold.otf');
  font-weight: 700;
}

.site-logo {
  position: fixed;
  top: 25px;
  left: 20px;
  width: 45px;
  height: auto;
  z-index: 1000;
}

header {
  display: flex;
  position: absolute;
  top: 40px;
  right: 3%;
  font-weight: bold;
  white-space: nowrap;
  cursor: default;
  z-index: 1000;
  scale: 1.1;
}

header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

header nav a {
  color: #E9E9E9;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin: 0 10px;
}

header nav a:hover {
  color: #FF4D00;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.lang-sep {
  color: rgba(233, 233, 233, 0.4);
  font-size: 0.85rem;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(233, 233, 233, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.05em;
}

.lang-btn.active {
  color: #FF4D00;
}

.lang-btn:hover:not(.active) {
  color: #E9E9E9;
}

.social-icons {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
}

.social-icons a img {
  width: 2rem;
  height: auto;
  transition: transform 0.2s ease;
}

.social-icons a img:hover {
  transform: scale(1.2);
  color: #FF4D00;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  padding: 10px 20px;
  overflow: hidden;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: min(960px, calc(100vw - 40px));
}

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

h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #FF4D00;
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: 2px;
}

h4 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin: 0;
  font-weight: 700;
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
}

p {
  position: relative;
  color: #E9E9E9;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 2rem);
}

.about {
  color: #E9E9E9;
  font-family: 'Segoe UI', Satoshi;
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: 1.5rem;
  max-width: 1500px;
  width: 100%;
  align-items: stretch;
}

.about-panel {
  background: transparent;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.about-panel__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #E9E9E9;
}

/* Panel 1: photo + big stacked type */
.about-panel--photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 480px;
}

.about-panel__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Panel 2: Steckbrief */
.about-panel--info {
  justify-content: flex-start;
}

.about-panel--info .bio {
  line-height: 1.6;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: rgba(233, 233, 233, 0.85);
}

.about-degree {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #E9E9E9;
}

.about-degree-dates {
  margin: 0.2em 0 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(233, 233, 233, 0.8);
}

.about-university {
  margin: 0.3em 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: rgba(233, 233, 233, 0.6);
}

/* Panel 3: Programme grid */
.about-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.about-program-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.about-program-tile:hover {
  background: rgba(233, 233, 233, 0.1);
}

.about-program-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Small contact link below the grid */
.about-contact {
  display: flex;
  justify-content: center;
  padding: 0 20px 60px;
}

.about-contact-link {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5rem 0;
  color: rgba(233, 233, 233, 1);
  font-family: Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}

.about-contact-link:hover {
  color: #FF4D00;
}

.about-contact-link__arrow {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.about-contact-link:hover .about-contact-link__arrow {
  transform: translateX(2px);
}

.arrow-img {
  position: absolute;
  top: -20%;
  left: 0;
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity 0.15s;
}

.arrow-img--default {
  opacity: 1;
}

.arrow-img--hover {
  opacity: 0;
}

.about-contact-link:hover .arrow-img--default {
  opacity: 0;
}

.about-contact-link:hover .arrow-img--hover {
  opacity: 1;
}

/* Responsive - Tablet (max 850px) */

@media (max-width: 850px) {
  /* Hide side social icons — they overlap content */
  .social-icons {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .about-panel {
    padding: 1.4rem;
  }

  .about-panel--photo {
    min-height: 420px;
  }
}

/* Responsive - Mobile (max 600px) */

@media (max-width: 600px) {

  /* Logo - scrolls with the page instead of floating over everything */
  .site-logo {
    position: absolute;
    width: 36px;
    top: 14px;
    left: 14px;
  }

  /* Header pill stays centered but shrinks */
  header {
    top: 12px;
    padding: 8px 14px;
  }

  header nav a {
    margin: 0 6px;
    font-size: 0.85rem;
  }

  .lang-btn {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  /* About */
  .about {
    padding: 24px 14px;
  }

  .about-panel {
    padding: 1.1rem;
  }

  .about-panel--photo {
    min-height: 340px;
  }

  h4 {
    font-size: 1.5rem;
  }

  .about-panel--info .bio {
    font-size: 0.95rem;
  }

  /* Nav */
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(30, 30, 40, 0.75);
  }
}

/* Footer */

.site-footer {
  margin: 4rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  gap: 1.5rem;
}

.site-footer__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__logo {
  width: 32px;
  height: auto;
  opacity: 0.7;
}

.site-footer__copy {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(233, 233, 233, 0.45);
}

.site-footer__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__socials {
  display: flex;
  gap: 1rem;
}

.site-footer__socials a img {
  width: 1.5rem;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.site-footer__socials a img:hover {
  opacity: 1;
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .site-footer {
    margin: 2rem 1rem 1rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem;
    gap: 1.2rem;
  }
}

.pf2-hero {
  padding: 130px 5% 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.pf2-hero__title {
  position: relative;
  left: unset;
  margin: 0 0 0.2em;
  color: #FF4D00;
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  text-align: left;
  transform: none;
}

.pf2-hero__sub {
  position: relative;
  margin: 0 0 2rem;
  color: #FF4D00;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

/* Filter tabs - flat paper tabs, no pills */
.pf2-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf2-tab {
  padding: 9px 20px;
  border: 1px solid rgba(233, 233, 233, 0.28);
  background: transparent;
  color: rgba(233, 233, 233, 0.6);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pf2-tab:hover {
  border-color: rgba(233, 233, 233, 0.6);
  color: #E9E9E9;
}

.pf2-tab.active {
  border-color: #FF4D00;
  background: rgba(255, 77, 0, 0.12);
  color: #FF4D00;
}

/* Work - grid of paper cards */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 1.8rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 5% 6rem;
}

@media (max-width: 1000px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-card {
  position: relative;
  cursor: pointer;
  /* "second sheet" behind the card — paper-stack feel */
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(233, 233, 233, 0.05);
  border: 1px solid rgba(233, 233, 233, 0.16);
  transform: translate(6px, 5px);
  z-index: 0;
  transition: transform 0.2s ease;
}

.work-card:hover::before,
.work-card:focus-visible::before {
  transform: translate(9px, 8px);
}

.work-card__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #1c1c1e;
  border: 1px solid rgba(233, 233, 233, 0.35);
}

.work-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(233, 233, 233, 0.35);
}

.work-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.work-card:hover .work-card__media img,
.work-card:focus-visible .work-card__media img {
  transform: scale(1.045);
  filter: brightness(0.55);
}

.work-card__stamp {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border: 1px solid currentColor;
  background: #1c1c1e;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-card__stamp--uni { color: #FF4D00; }
.work-card__stamp--personal { color: #8dcfff; }

.work-card__playmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 233, 233, 0.5);
  background: rgba(28, 28, 30, 0.75);
  color: #E9E9E9;
  font-size: 0.7rem;
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.work-card:hover .work-card__overlay,
.work-card:focus-visible .work-card__overlay {
  opacity: 1;
}

.work-card__overlay-text {
  color: #E9E9E9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.work-card__title {
  margin: 0 0 0.2em;
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.work-card__sub {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: rgba(233, 233, 233, 0.8);
  letter-spacing: 0.03em;
}

/* Always-visible label strip (fallback for touch devices without hover) */
.work-card__label {
  padding: 0.75rem 0.9rem;
  border-top: none;
}

.work-card__label-title {
  margin: 0;
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #E9E9E9;
}

.work-card__label-meta {
  margin: 0.2em 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(233, 233, 233, 0.6);
  text-transform: uppercase;
}

@media (hover: hover) {
  .work-card__label { display: none; }
}

/* Coming soon cards */
.work-card--soon {
  cursor: default;
  opacity: 0.55;
}

.work-card--soon::before {
  border-style: dashed;
}

.work-card--soon .work-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-style: dashed;
}

.work-card--soon .work-card__coming {
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 233, 233, 0.35);
}

/* Project modal (popup, no page navigation) */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3vh 3vw;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.82);
}

.project-modal.is-open {
  display: flex;
}

.project-modal__panel {
  position: relative;
  width: 100%;
  max-width: 1440px;
  background: #1c1c1e;
  border: 1px solid rgba(233, 233, 233, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  margin: auto 0;
}

.project-modal__close {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1e;
  border: 1px solid rgba(233, 233, 233, 0.35);
  color: #E9E9E9;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s, color 0.15s;
}

.project-modal__close:hover {
  background: #FF4D00;
  color: #1c1c1e;
  border-color: #FF4D00;
}

.project-modal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 1fr;
  gap: 0;
}

.project-modal__media {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid rgba(233, 233, 233, 0.2);
}

.project-modal__viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(233, 233, 233, 0.2);
}

.project-modal__viewer-main,
.project-modal__viewer-video,
.project-modal__viewer-youtube {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.project-modal__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.85rem;
}

.project-modal__thumb {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 50px;
  overflow: hidden;
  border: 2px solid rgba(233, 233, 233, 0.2);
  cursor: pointer;
  transition: border-color 0.15s;
}

.project-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal__thumb:hover {
  border-color: rgba(233, 233, 233, 0.6);
}

.project-modal__thumb.active {
  border-color: #FF4D00;
}

.project-modal__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.9rem;
  pointer-events: none;
}

.project-modal__info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem;
  max-height: 100%;
  overflow-y: auto;
}

.project-modal__label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf2-entry__year {
  color: rgba(233, 233, 233, 0.4);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.project-modal__title {
  position: relative;
  left: unset;
  bottom: unset;
  transform: none;
  text-align: left;
  margin: 0;
  color: #E9E9E9;
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.project-modal__desc {
  margin: 0;
  color: rgba(233, 233, 233, 0.8);
  font-family: Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

.project-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(233, 233, 233, 0.16);
  background: rgba(233, 233, 233, 0.04);
}

.project-modal__meta-row {
  display: flex;
  justify-content: space-between;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.project-modal__meta-key {
  color: rgba(233, 233, 233, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-modal__meta-val {
  color: #E9E9E9;
  font-weight: 500;
}

.project-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.project-modal__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Shared paper elements: badges, tags, buttons */

.pf2-badge {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pf2-badge--uni {
  border-color: rgba(255, 77, 0, 0.5);
  background: rgba(255, 77, 0, 0.1);
  color: #FF4D00;
}

.pf2-badge--personal {
  border-color: rgba(100, 180, 255, 0.45);
  background: rgba(100, 180, 255, 0.1);
  color: #8dcfff;
}

.pf2-tag {
  padding: 5px 12px;
  border: 1px solid rgba(233, 233, 233, 0.25);
  background: rgba(233, 233, 233, 0.05);
  color: #E9E9E9;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: 0.76rem;
  white-space: nowrap;
}

.pf2-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 9px 18px;
  border-radius: 0;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pf2-cta-btn:hover {
  transform: translateY(-2px);
}

.pf2-cta-btn--artstation {
  border: 1px solid rgba(255, 77, 0, 0.5);
  background: rgba(255, 77, 0, 0.1);
  color: #FF4D00;
}

.pf2-cta-btn--artstation:hover {
  border-color: #FF4D00;
  background: rgba(255, 77, 0, 0.2);
}

.pf2-cta-btn--prototype {
  border: 1px solid rgba(255, 97, 246, 0.4);
  background: rgba(255, 97, 246, 0.08);
  color: #FF61F6;
}

.pf2-cta-btn--prototype:hover {
  border-color: #FF61F6;
  background: rgba(255, 97, 246, 0.18);
}

/* App-type viewer (screens shown letterboxed, not cropped) */
.project-modal__viewer[data-app="true"] {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.project-modal__viewer[data-app="true"] .project-modal__viewer-main,
.project-modal__viewer[data-app="true"] .project-modal__viewer-video {
  object-fit: contain;
}

/* Responsive - work grid + modal */

@media (max-width: 1100px) {
  .project-modal__inner {
    grid-template-columns: 1fr;
  }

  .project-modal__media {
    border-right: none;
  }
}

@media (max-width: 700px) {
  .pf2-hero {
    padding: 110px 5% 30px;
  }

  .pf2-hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 5% 4rem;
  }

  .project-modal {
    padding: 0;
  }

  .project-modal__panel {
    max-width: none;
    min-height: 100vh;
  }

  .project-modal__info {
    padding: 1.25rem;
  }

  .project-modal__thumb {
    width: 64px;
    height: 42px;
  }
}

.pf2-work {
  overflow: hidden;
}

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

@media (max-width: 600px) {
  .pf2-work video {
    width: 145%;
    margin-left: -22.5%;
  }
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  overscroll-behavior-x: none;
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* offset anchored sections so the fixed glass header doesn't cover the title */
#work,
#about {
  scroll-margin-top: 110px;
}

/* Showreel - placeholder template, style this later */

.showreel {
  padding: 3rem 5% 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.showreel__inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.showreel__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px dashed rgba(255, 77, 0, 1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showreel__placeholder {
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233, 233, 233, 0.35);
}

@media (max-width: 700px) {
  .showreel {
    padding: 2rem 5% 3rem;
  }
}

.pf2-about-me-badge {
  overflow: hidden;
}

.pf2-about-me-badge video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .pf2-about-me-badge video {
    width: 145%;
    margin-left: -22.5%;
  }
}

/* ============================================================================
   TRANSPARENT WEBM

   A <video> is transparent by default, but a few mobile browsers paint an
   opaque box behind it. These rules force the box to stay see-through.
   Visually identical on desktop.
   ========================================================================== */

.alpha-video,
.hero-card video,
.pf2-work video,
.pf2-about-me-badge video {
  background: transparent;
  background-color: transparent;
}

.hero,
.hero-card,
.pf2-work,
.pf2-about-me-badge {
  background: transparent;
}


/* ============================================================================
   MOBILE
   Everything below only applies at <= 900px.
   The desktop layout above this line is untouched.
   ========================================================================== */

/* hidden by default - desktop never sees these elements */
.mobile-bar,
.mobile-nav,
.mobile-nav-backdrop,
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 900px) {

  /* ---- 1. Transparency fallback ------------------------------------------
     iOS Safari cannot decode the alpha channel of a VP9 webm, so the video
     shows up as a black box. "screen" blending drops every black pixel into
     the dark page background, which gives the same result visually.
     If a HEVC-alpha .mov source is added later this rule stays harmless.     */

  /* body's background normally propagates to the browser canvas, which would
     leave the blend with nothing to blend against. Giving <html> the same
     colour keeps the background painted inside <body>, where the video can
     actually see it. Same colour, so nothing looks different. */
  html {
    background-color: #1c1c1e;
  }

  .alpha-video {
    mix-blend-mode: screen;
  }

  /* ---- 2. Top bar --------------------------------------------------------- */

  .mobile-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    z-index: 1400;
    pointer-events: none;
    background: rgba(24, 24, 26, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(233, 233, 233, 0.16);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  body.is-scrolled .mobile-bar,
  body.mobile-nav-open .mobile-bar {
    opacity: 1;
  }

  /* desktop nav off, burger on */
  header,
  .social-icons {
    display: none !important;
  }

  .logo-link {
    position: relative;
    z-index: 1500;
  }

  .site-logo {
    position: fixed;
    top: 15px;
    left: 16px;
    width: 32px;
    z-index: 1500;
  }

  /* ---- 3. Burger button --------------------------------------------------- */

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    z-index: 1600;
    background: #1c1c1e;
    border: 1px solid rgba(233, 233, 233, 0.35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  /* "second sheet" behind it, same paper-stack trick as the work cards */
  .mobile-nav-toggle {
    box-shadow:
      4px 4px 0 0 rgba(233, 233, 233, 0.05),
      4px 4px 0 1px rgba(233, 233, 233, 0.18);
  }

  .mobile-nav-toggle:active {
    box-shadow:
      1px 1px 0 0 rgba(233, 233, 233, 0.05),
      1px 1px 0 1px rgba(233, 233, 233, 0.18);
  }

  .mobile-nav-toggle__bars {
    position: relative;
    display: block;
    width: 18px;
    height: 12px;
  }

  .mobile-nav-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #E9E9E9;
    transition: transform 0.28s cubic-bezier(.2,.8,.3,1), opacity 0.18s ease, background 0.18s ease;
  }

  .mobile-nav-toggle__bars span:nth-child(1) { top: 0; }
  .mobile-nav-toggle__bars span:nth-child(2) { top: 5px; }
  .mobile-nav-toggle__bars span:nth-child(3) { top: 10px; }

  body.mobile-nav-open .mobile-nav-toggle {
    border-color: #FF4D00;
  }

  body.mobile-nav-open .mobile-nav-toggle__bars span {
    background: #FF4D00;
  }

  body.mobile-nav-open .mobile-nav-toggle__bars span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  body.mobile-nav-open .mobile-nav-toggle__bars span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
  }

  body.mobile-nav-open .mobile-nav-toggle__bars span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* ---- 4. Drop down panel -------------------------------------------------- */

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 62px;
    left: 12px;
    right: 12px;
    z-index: 1500;
    padding: 0.5rem 0 0;
    background: #1c1c1e;
    border: 1px solid rgba(233, 233, 233, 0.35);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transition: transform 0.28s cubic-bezier(.2,.8,.3,1),
                opacity 0.2s ease,
                visibility 0.28s;
  }

  body.mobile-nav-open .mobile-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-nav__links {
    counter-reset: navitem;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav__link {
    counter-increment: navitem;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    color: #E9E9E9;
    font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    /* staggered entrance */
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.15s ease, background 0.15s ease;
  }

  .mobile-nav__link::before {
    content: "0" counter(navitem);
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(233, 233, 233, 0.35);
  }

  .mobile-nav__link::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 0;
    height: 1px;
    background: rgba(233, 233, 233, 0.12);
  }

  .mobile-nav__link:last-child::after {
    display: none;
  }

  .mobile-nav__link:active {
    background: rgba(255, 77, 0, 0.1);
    color: #FF4D00;
  }

  .mobile-nav__link.is-current {
    color: #FF4D00;
  }

  .mobile-nav__link.is-current::before {
    color: #FF4D00;
  }

  body.mobile-nav-open .mobile-nav__link {
    opacity: 1;
    transform: translateY(0);
  }

  body.mobile-nav-open .mobile-nav__link:nth-child(1) { transition-delay: 0.06s; }
  body.mobile-nav-open .mobile-nav__link:nth-child(2) { transition-delay: 0.10s; }
  body.mobile-nav-open .mobile-nav__link:nth-child(3) { transition-delay: 0.14s; }
  body.mobile-nav-open .mobile-nav__link:nth-child(4) { transition-delay: 0.18s; }

  .mobile-nav__footer {
    padding: 1rem 1.2rem 1.2rem;
    border-top: 1px solid rgba(233, 233, 233, 0.2);
    background: rgba(233, 233, 233, 0.03);
  }

  .mobile-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .mobile-nav__row-key {
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(233, 233, 233, 0.45);
  }

  /* Language switcher as two real buttons */
  .mobile-nav__langs {
    display: flex;
    gap: 6px;
  }

  .mobile-nav__langs .lang-btn {
    min-width: 52px;
    padding: 8px 12px;
    border: 1px solid rgba(233, 233, 233, 0.28);
    border-radius: 0;
    background: transparent;
    color: rgba(233, 233, 233, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
  }

  .mobile-nav__langs .lang-btn.active {
    border-color: #FF4D00;
    background: rgba(255, 77, 0, 0.12);
    color: #FF4D00;
  }

  .mobile-nav__socials {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(233, 233, 233, 0.12);
  }

  .mobile-nav__socials a img {
    width: 1.5rem;
    height: auto;
    opacity: 0.65;
    transition: opacity 0.15s, transform 0.15s;
  }

  .mobile-nav__socials a:active img {
    opacity: 1;
    transform: scale(1.12);
  }

  /* ---- 5. Layout breathing room under the fixed bar ------------------------ */

  #top, #showreel, #work, #about {
    scroll-margin-top: 78px;
  }

  .hero {
    min-height: auto;
    padding: 86px 18px 8px;
  }

  .showreel {
    padding: 1.5rem 18px 2.5rem;
  }

  .showreel__frame {
    border-radius: 10px;
  }

  .showreel__placeholder {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 1rem;
  }

  /* ---- 6. Work section ----------------------------------------------------- */

  .pf2-hero {
    padding: 1.5rem 18px 0.5rem;
    text-align: center;
  }

  .pf2-hero__title {
    font-size: clamp(2.6rem, 15vw, 4rem);
    text-align: center;
    margin-bottom: 0.15em;
  }

  .pf2-hero__sub {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 auto 1.5rem;
    max-width: 32ch;
  }

  /* tabs: three equal paper tabs, no wrapping */
  .pf2-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .pf2-tab {
    padding: 11px 6px;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 1.8rem 18px 3rem;
  }

  /* touch feedback instead of hover */
  .work-card {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .work-card:active {
    transform: translate(3px, 3px);
  }

  .work-card:active::before {
    transform: translate(3px, 3px);
  }

  .work-card__media {
    aspect-ratio: 16 / 11;
  }

  /* on touch the overlay never fires, so the label strip carries the info */
  .work-card__label {
    display: block;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(233, 233, 233, 0.16);
  }

  .work-card__label-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .work-card--soon .work-card__media {
    aspect-ratio: 16 / 11;
  }

  /* ---- 7. Project modal ---------------------------------------------------- */

  .project-modal {
    padding: 0;
    background: rgba(0, 0, 0, 0.92);
  }

  .project-modal__panel {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    border: none;
    margin: 0;
  }

  .project-modal__close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.5rem;
  }

  .project-modal__viewer {
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid rgba(233, 233, 233, 0.2);
  }

  /* thumbnails scroll sideways instead of stacking into a tall block */
  .project-modal__thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.5rem;
    padding: 0.75rem 18px;
    scroll-snap-type: x mandatory;
  }

  .project-modal__thumbs::-webkit-scrollbar {
    display: none;
  }

  .project-modal__thumb {
    width: 72px;
    height: 48px;
    scroll-snap-align: start;
  }

  .project-modal__info {
    gap: 0.95rem;
    padding: 1.25rem 18px 2.5rem;
    overflow: visible;
  }

  .project-modal__title {
    font-size: 1.55rem;
  }

  .project-modal__desc {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .project-modal__meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .project-modal__cta .pf2-cta-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 18px;
  }

  /* ---- 8. About ------------------------------------------------------------ */

  .about {
    padding: 1.5rem 18px 1rem;
  }

  .about-grid {
    gap: 1.1rem;
  }

  /* give each panel a paper sheet so it does not float on the background */
  .about-panel {
    padding: 1.25rem;
    background: rgba(233, 233, 233, 0.04);
    border: 1px solid rgba(233, 233, 233, 0.2);
  }

  .about-panel--photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
  }

  .about-panel__title {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
  }

  .about-panel--info .bio {
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
  }

  .about-programs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .about-program-tile {
    padding: 0.35rem;
    border: 1px solid rgba(233, 233, 233, 0.12);
  }

  .about-contact {
    padding: 0.5rem 18px 2.5rem;
  }

  .about-contact-link {
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 77, 0, 0.5);
    background: rgba(255, 77, 0, 0.08);
    color: #FF4D00;
    font-size: 1.1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .about-contact-link .arrow-img--default { opacity: 0; }
  .about-contact-link .arrow-img--hover   { opacity: 1; }

  .about-contact-link:active {
    background: rgba(255, 77, 0, 0.18);
  }

  /* ---- 9. Footer ----------------------------------------------------------- */

  .site-footer {
    margin: 2rem 18px 1.5rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .site-footer__left {
    flex-direction: column;
    gap: 0.6rem;
  }

  .site-footer__right {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .site-footer__right .pf2-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
}


/* ---- Narrow phones ------------------------------------------------------- */

@media (max-width: 400px) {
  .mobile-nav__link {
    font-size: 1.3rem;
    padding: 0.75rem 1rem;
  }

  .pf2-tab {
    font-size: 0.62rem;
    padding: 10px 4px;
  }

  .about-programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---- Respect reduced-motion preferences ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav__link,
  .mobile-nav-toggle__bars span,
  .mobile-bar {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}