/*
Theme Name: Mares Portfolio
Theme URI: https://rayesh.id
Author: Mares Rayeshtyan
Author URI: https://rayesh.id
Description: Custom portfolio theme for Mares Rayeshtyan, graphic designer based in Bandung, Indonesia. Converted from static HTML/CSS build.
Version: 2.9
License: All Rights Reserved
Text Domain: mares-portfolio
*/

/* ======================================
   FONT FACE
====================================== */
@font-face {
  font-family: 'Regular';
  src: url('fonts/PPRadioGrotesk-Regular.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Black';
  src: url('fonts/PPRadioGrotesk-Black.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'UltralightItalic';
  src: url('fonts/PPEditorialNew-UltralightItalic.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Italic';
  src: url('fonts/PPEditorialNew-Italic.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Ultralight';
  src: url('fonts/PPRadioGrotesk-Ultralight.otf') format('opentype');
  font-display: swap;
}

/* ======================================
   GLOBAL / RESET
====================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html,
body {
  height: 100%;
  background-color: #F0F0F0;
  overflow: hidden;
  text-transform: lowercase;
}

/* Mobile-only elements hidden by default */
.mobile-project,
.mobile-header,
.mobile-name,
.mobile-name-footer,
.project-bottom-row {
  display: none;
}

/* ======================================
   CUSTOM CURSOR
====================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border: 1px solid #d92e28;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  z-index: 9999;
}

/* ======================================
   MAIN LAYOUT
====================================== */
.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ======================================
   SIDEBAR (LEFT)
====================================== */
.sidebar {
  position: relative;
  width: 20%;
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-bottom: 0.75px solid #d92e28;
}

/* sidebar header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sidebar-experiment .sidebar-header {
  border-bottom: 0.75px solid #d92e28;
}

.sidebar-inverted.sidebar-experiment .sidebar-header {
  border-bottom-color: #F0F0F0;
}

/* ======================================
   NAV BUTTONS / LINKS
====================================== */
.menu-title,
.menu-title-act,
.experiment-title,
.experiment-title-act {
  font-size: 26px;
  text-decoration: none;
  color: #d92e28;
  padding: 15px 25px;
}

.menu-title,
.experiment-title {
  font-family: 'Regular';
}

.menu-title-act,
.menu-title:hover,
.menu-title:focus {
  font-family: 'Black';
  letter-spacing: -1.5px;
}

.experiment-title-act,
.experiment-title:hover,
.experiment-title:focus {
  font-family: 'Black';
  letter-spacing: -1.1px;
}

/* ======================================
   INVERTED SIDEBAR (experiment page)
====================================== */
.sidebar-inverted {
  background-color: #d92e28;
  border-bottom-color: #F0F0F0;
}

.sidebar-inverted .sidebar-header {
  border-bottom-color: #F0F0F0;
}

.sidebar-inverted .menu-title,
.sidebar-inverted .menu-title-act,
.sidebar-inverted .experiment-title,
.sidebar-inverted .experiment-title-act {
  color: #F0F0F0;
}

.sidebar-inverted .filter-bar {
  border-bottom-color: #F0F0F0;
}

.sidebar-inverted .filter-active-label {
  color: #F0F0F0;
}

.sidebar-inverted .filter-expand-btn {
  color: #F0F0F0;
}

.sidebar-inverted .filter-btn {
  border-color: #F0F0F0;
  color: #F0F0F0;
}

.sidebar-inverted .filter-btn:hover,
.sidebar-inverted .filter-btn.active {
  background: #F0F0F0;
  color: #d92e28;
}

.sidebar-inverted .project-list {
  color: #F0F0F0;
}

.sidebar-inverted .project-list li {
  border-bottom-color: #F0F0F0;
}

.sidebar-inverted .project-list li:hover span,
.sidebar-inverted .project-list li.active span {
  color: #F0F0F0;
}

.sidebar-inverted .about-link,
.sidebar-inverted .about-link-act {
  color: #F0F0F0;
  border-color: #F0F0F0;
}

/* ======================================
   FILTER BAR
====================================== */
.filter-bar {
  border-bottom: 0.75px solid #d92e28;
  flex-shrink: 0;
}

.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px 17px 20px;
  width: 100%;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-count {
  font-family: 'Regular';
  font-size: 14px;
  color: #d92e28;
}

.filter-active-label {
  font-family: 'Regular';
  font-size: 15px;
  color: #d92e28;
}

.filter-expand-btn {
  background: none;
  border: none;
  font-family: 'Regular';
  font-size: 20px;
  color: #d92e28;
  cursor: none;
  line-height: 1;
  padding: 0;
  margin-right: 0;
  transition: transform 0.2s ease;
}

.filter-options {
  display: none;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 15px 18px 15px;
}

.filter-bar.open .filter-options {
  display: flex;
}

/* Each button reserves space for its bold state via ::after */
.filter-btn {
  position: relative;
  background: none;
  border: 0.75px solid #d92e28;
  color: #d92e28;
  font-family: 'Regular';
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 20px;
  cursor: none;
  text-transform: lowercase;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* Invisible bold clone reserves the exact bold width */
.filter-btn::after {
  content: attr(data-filter);
  font-family: 'Black';
  letter-spacing: -0.3px;
  font-size: 13px;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  display: block;
}

.filter-btn:hover,
.filter-btn.active {
  background: #d92e28;
  color: #F0F0F0;
  font-family: 'Black';
  letter-spacing: -0.3px;
}

/* ======================================
   PROJECT LIST
====================================== */
.project-list {
  text-decoration: none;
  list-style: none;
  font-family: 'Regular';
  font-size: 18px;
  color: #d92e28;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}


.project-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 13px 15px;
  border-bottom: 0.75px solid #d92e28;
}

.project-list li::before {
  content: '';
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #d92e28;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-list li:hover::before,
.project-list li.active::before {
  opacity: 1;
  transform: scale(1);
}

/* project name */
.project-list li span:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  margin-left: 14px;
  font-size: 16px;
}

/* project type */
.project-list li span:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  margin-left: 14px;
  margin-top: 3px;
  font-size: 14px;
}

/* year */
.project-list li span:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
  margin-right: 5px;
  font-size: 13px;
}


/* ======================================
   ABOUT LINK (BOTTOM LEFT)
====================================== */
.about-link {
  font-family: 'Regular';
  font-size: 26px;
  color: #d92e28;
  text-decoration: none;
  margin-top: 0;
  flex-shrink: 0;
  padding: 25px 18px;
  border-top: 0.75px solid #d92e28;
  border-bottom: 0.75px solid #d92e28;
  display: block;
}

.about-link-act {
  font-family: 'Black';
  letter-spacing: -0.8px;
  font-size: 26px;
  color: #d92e28;
  text-decoration: none;
  margin-top: 0;
  flex-shrink: 0;
  padding: 25px 18px;
  border-top: 0.75px solid #d92e28;
  border-bottom: 0.75px solid #d92e28;
  display: block;
}

.about-link:hover {
  font-family: 'Black';
  letter-spacing: -0.8px;
}

/* ======================================
   NAME TITLE (HUGE TYPO)
====================================== */
.name-title {
  position: fixed;
  bottom: 25px;
  right: 0;
  width: 80%;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Black';
  font-size: 10vw;
  letter-spacing: -10px;
  line-height: 0.9;
  color: #d92e28;
  font-weight: 100;
  text-transform: capitalize;
  z-index: 10;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.name-title-0 {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 80%;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Black';
  font-size: 10vw;
  letter-spacing: -10px;
  line-height: 0.9;
  color: #d92e28;
  font-weight: 100;
  text-transform: capitalize;
  z-index: 10;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ======================================
   RIGHT PANEL (PROJECT DETAIL)
====================================== */
.project-detail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  gap: 50px;
  width: 80%;
  padding: 25px 40px;
  background-color: #F0F0F0;
  position: relative;
  overflow-y: hidden;
  text-transform: lowercase;
  border-top: 0.75px solid #d92e28;
  border-left: 0.75px solid #d92e28;
  border-right: none;
}

.project-detail-0 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-content: start;
  gap: 50px;
  width: 80%;
  position: relative;
  overflow-y: auto;
  text-transform: lowercase;
  padding-top: 25px;
  padding-right: 25px;
  border-left: 0.75px solid #d92e28;
}

.project-image {
  grid-column: 1/6;
  font-size: 0;
  line-height: 0;
  margin-right: -25px;
}
.project-image div:not(:last-child) {
  border-bottom: 0.5px solid #c8c8c8;
}
.project-image img,
.project-image video {
  display: block;
  width: 100%;
  aspect-ratio: 25 / 18;
  object-fit: cover;
}

/* ======================================
   SLIDESHOW
====================================== */
.slideshow-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* slideshow image frame */
.slide img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  filter: brightness(0.8);
}

/* ======================================
   TEXT CONTENT – WORKS
====================================== */
.intro-text,
.intro-text-wt {
  grid-column: 4 / 5;
  grid-row: 1;
  font-family: 'Regular';
  font-size: 20px;
  line-height: 1.3;
  color: #d92e28;
  z-index: 11;
}

/* ======================================
   TEXT CONTENT – ABOUT
====================================== */
.bio-text {
  grid-column: 4 / 5;
  grid-row: 1;
  font-family: 'Regular';
  font-size: 22px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.7);
}

.project-info {
  grid-column: 3/4;
  grid-row: 1;
  font-family: 'Regular';
  font-size: 22px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.7);
}

.A1 {
  font-family: 'Black';
  font-size: 24px;
  color: #d92e28;
}

.A2 {
  font-family: 'Black';
  color: #d92e28;
}

.bio-text strong,
.bio-text b,
.project-longtext strong,
.project-longtext b,
.project-longtext-single strong,
.project-longtext-single b {
  color: #d92e28;
}

.pdf-link {
  color: #d92e28;
  text-decoration: none;
}

.pdf-link:hover {
  font-family: 'Black';
  letter-spacing: -0.8px;
}

.about-btn-group {
  display: flex;
  flex-wrap: wrap;
  row-gap: 7px;
  column-gap: 5px;
  margin-top: 10px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.75px solid #d92e28;
  color: #d92e28;
  font-family: 'Regular';
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 40px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.about-btn:hover {
  background: #d92e28;
  color: #F0F0F0;
}

/* ======================================
   PDF DOWNLOAD MODAL
====================================== */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.pdf-modal-overlay.open {
  display: flex;
}

.pdf-modal {
  position: relative;
  background: #F0F0F0;
  border: 0.75px solid #d92e28;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 380px;
  box-sizing: border-box;
}

.pdf-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #d92e28;
  cursor: none;
  padding: 0;
}

.pdf-modal-title {
  font-family: 'Black';
  font-size: 22px;
  color: #d92e28;
  margin: 0 0 8px;
  text-transform: lowercase;
}

.pdf-modal-desc {
  font-family: 'Regular';
  font-size: 16px;
  color: #d92e28;
  margin: 0 0 20px;
  line-height: 1.4;
}

.pdf-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-modal-input-wrap {
  position: relative;
  width: calc(100% + 10px);
  margin-left: -5px;
  margin-right: -5px;
}

.pdf-modal-input-wrap input {
  font-family: 'Regular';
  font-size: 18px;
  color: #d92e28;
  background: none;
  border: 0.75px solid #d92e28;
  border-radius: 40px;
  padding: 15px 46px 15px 16px;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.pdf-modal-input-wrap input::placeholder {
  color: #d92e28;
  opacity: 0.5;
}

.pdf-modal-submit-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: none;
  color: #d92e28;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.pdf-modal-submit-icon:hover,
.pdf-modal-submit-icon:active,
.pdf-modal-submit-icon:focus {
  background: #d92e28;
  color: #F0F0F0;
}

.pdf-modal-success {
  display: none;
  font-family: 'Regular';
  font-size: 14px;
  color: #d92e28;
  text-align: center;
  margin: 0;
}

/* ======================================
   PROFILE IMAGE
====================================== */
.profile-photo img {
  width: 470px;
  height: auto;
  position: absolute;
  top: 20%;
  left: 20%;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* ======================================
   Menu-Screen Mobile
====================================== */
.overlay {
  height: 100%;
  width: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 13;
  padding: calc(10px + env(safe-area-inset-top)) 10px 0 10px;
  box-sizing: border-box;
  background-color: #F0F0F0;
}

.overlay-content {
  position: relative;
  width: 100%;
  text-align: left;
  padding-left: 5px;
}

.overlay a {
  text-decoration: none;
  font-size: 13vw;
  font-family: 'Black';
  color: #d92e28;
  display: block;
  transition: 0.3s;
  letter-spacing: -3px;
  line-height: 1;
}

.overlay a:hover,
.overlay a:focus {
  color: #d92e28;
}

.overlay-header {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}

.overlay .closebtn {
  position: static;
  color: #d92e28;
  padding: 0 15px 0 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 51px;
}

.overlay .closebtn svg {
  display: block;
  transform: rotate(45deg);
}

.arrow {
  text-decoration: none;
  color: #d92e28;
  font-family: 'Regular';
  font-size: 80px;
  margin-left: 10px;
}

.desktop-cta-btn {
  grid-column: 5 / 6;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.project-longtext {
  grid-column: 3 / 6;
  grid-row: auto;
  display: grid;
  grid-template-columns: subgrid;
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: 'Regular';
  font-size: 22px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.7);
  text-transform: lowercase;
}

.project-longtext p {
  margin: 0;
}

.project-longtext-single {
  grid-column: 3 / 5;
  grid-row: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: 'Regular';
  font-size: 22px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.7);
  text-transform: lowercase;
}

.project-longtext-single p {
  margin: 0;
}

.project-bottom-row {
  align-items: center;
  justify-content: space-between;
  padding-right: 10px;
}

.project-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.75px solid #d92e28;
  color: #d92e28;
  font-family: 'Regular';
  font-size: 18px;
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.project-cta-btn:hover {
  background: #d92e28;
  color: #F0F0F0;
}

/* ======================================
   RESPONSIVE
====================================== */

/* --- iMac 24" (2240px+) --- */
@media (min-width: 1681px) {
  .sidebar {
    width: 20%;
  }

  .project-detail,
  .project-detail-0 {
    width: 80%;
    gap: 40px;
  }

  .pdf-modal-title {
    font-size: 24px;
  }

  .pdf-modal-desc {
    font-size: 18px;
  }

  .project-list li {
    padding: 18px 12px;
  }

  .project-list li span:nth-child(3) {
    margin-right: 19px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 13px;
  }

  .filter-toggle {
    padding-bottom: 19px;
    padding-left: 26px;
    padding-right: 28px;
  }

  .filter-options {
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 17px;
    gap: 7px;
  }

  .name-title,
  .name-title-0 {
    width: 80%;
    bottom: -10px;
    padding: 0 25px;
  }

  .intro-text-wt,
  .bio-text,
  .pdf-info,
  .project-info,
  .project-longtext,
  .project-longtext-single,
  .A1,
  .A2 {
    font-size: 18px;
  }

  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act {
    padding: 18px 24px 18px 26px;
  }

  .about-link,
  .about-link-act {
    padding: 18px 24px 18px 26px;
  }

  .menu-title-act,
  .menu-title:hover {
    letter-spacing: -1.8px;
  }

  .experiment-title-act,
  .experiment-title:hover {
    letter-spacing: -1.3px;
  }

  .about-link-act,
  .about-link:hover {
    letter-spacing: -1.0px;
  }

}

@media (max-width: 1680px) {
  .sidebar {
    width: 25%;
  }

  .pdf-modal-title {
    font-size: 24px;
  }

  .pdf-modal-desc {
    font-size: 18px;
  }

  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act {
    font-size: 25px;
    padding: 17px 24px;
  }

  .project-detail {
    width: 75%;
    padding: 18px 20px;
    gap: 20px;
  }

  .project-detail-0 {
    width: 75%;
    gap: 30px;
  }

  .project-detail-0 .bio-text {
    grid-column: 4/6;
    width: 60%;
    margin-bottom: 50px;
  }

  .project-list {
    font-size: 18px;
  }

  .project-list li {
    padding: 17px 10px;
  }

  .project-list li span:nth-child(3) {
    margin-right: 19px;
  }

  .about-link-act,
  .about-link {
    font-size: 25px;
    padding-top: 17px;
    padding-bottom: 17px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .filter-btn {
    padding: 7px 14px;
  }

  .filter-toggle {
    padding-left: 24px;
    padding-bottom: 19px;
    padding-right: 26px;
  }

  .filter-options {
    padding-left: 18px;
    padding-bottom: 20px;
    padding-right: 17px;
  }

  .filter-options {
    gap: 7px;
  }

  .name-title,
  .name-title-0 {
    bottom: -5px;
    width: 75%;
  }

  .intro-text-wt,
  .bio-text,
  .pdf-info,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 17px;
  }

  .project-longtext,
  .project-longtext-single {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .A1 {
    font-size: 19px;
  }

  .A2 {
    font-size: 17px;
  }

  .profile-photo img {
    width: 330px;
    top: 15%;
    left: 18%;
  }
}

/* --- 1390px Desktop--- */
@media (max-width: 1390px) {
  .sidebar {
    width: 25%;
    height: 100vh;
  }

  .project-detail {
    width: 75%;
    grid-template-columns: repeat(5, 1fr);
  }

  .project-detail-0 {
    grid-template-columns: repeat(4, 1fr);
    width: 75%;
    gap: 30px;
  }

  .project-detail-0 .project-image {
    grid-column: 1/5;
  }

  .project-detail-0 .project-info {
    grid-column: 2/3;
  }

  .project-detail-0 .bio-text {
    grid-column: 3/4;
  }

  .project-detail-0 .desktop-cta-btn {
    grid-column: 4/5;
  }

  .project-detail-0 .project-longtext,
  .project-detail-0 .project-longtext-single {
    grid-column: 2/5;
  }

  .name-title,
  .name-title-0 {
    width: 75%;
    bottom: 0;
  }

  .intro-text-wt,
  .pdf-info {
    font-size: 15px;
  }

  .bio-text,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 16px;
  }

  .project-detail .bio-text {
    grid-column: 4/6;
    width: 75%;
  }

  .project-detail-0 .bio-text {
    grid-column: 3/5;
    width: 60%;
  }

  .filter-btn {
    font-size: 15px;
    padding: 5px 10px;
  }

  .filter-btn::after {
    font-size: 15px;
  }

  .filter-toggle {
    padding-left: 26px;
    padding-right: 22px;
  }

  .filter-options {
    gap: 10px;
    padding-left: 22px;
  }

  .project-list li {
    padding-left: 12px;
    padding-right: 10px;
  }

  .project-list li span:nth-child(3) {
    margin-right: 16px;
  }

  .A1 {
    font-size: 17px;
  }

  .A2 {
    font-size: 15px;
  }

  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act {
    font-size: 22px;
    padding: 15px 17px 15px 25px;
  }

  .experiment-title,
  .experiment-title-act {
    padding-right: 20px;
  }

  .about-link-act,
  .about-link {
    font-size: 22px;
    margin-top: 0;
    padding: 15px 17px 15px 25px;
    border-top: 0.75px solid #d92e28;
    border-bottom: 0.75px solid #d92e28;
    display: block;
  }

  .project-list {
    font-size: 13px;
    flex: 1;
  }

  .profile-photo img {
    width: 300px;
    top: 15%;
    left: 19%;
  }
}

/* --- 1180px --- */
@media (max-width: 1180px) {
  .sidebar {
    width: 25%;
  }

  .project-detail,
  .project-detail-0 {
    width: 75%;
  }

  .name-title,
  .name-title-0 {
    width: 75%;
    font-size: 9vw;
  }

  .project-list li {
    padding-left: 6px;
  }

  .project-list li::before {
    width: 5px;
    height: 5px;
  }

  .project-list li span:nth-child(1) {
    font-size: 14px;
    margin-left: 12px;
  }

  .project-list li span:nth-child(2) {
    font-size: 12px;
    margin-left: 12px;
  }

  .project-list li span:nth-child(3) {
    font-size: 11px;
    margin-right: 4px;
  }

  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act {
    font-size: 20px;
    padding: 15px 17px 10px 19px;
  }

  .experiment-title,
  .experiment-title-act {
    padding-right: 20px;
  }

  .about-link-act,
  .about-link {
    font-size: 20px;
    padding-left: 20px;
  }

  .filter-toggle {
    padding: 0px 20px 15px 19px;
  }

  .filter-options {
    padding: 0 12px 18px 15px;
  }

  .filter-active-label {
    font-size: 13px;
  }

  .filter-expand-btn {
    font-size: 18px;
  }

  .filter-count {
    font-size: 12px;
  }

  .filter-btn {
    font-size: 11px;
    padding: 5px 10px;
  }

  .filter-btn::after {
    font-size: 11px;
  }

  .filter-options {
    gap: 7px;
  }

  .filter-btn::after {
    font-size: 13px;
  }

  .project-list li {
    padding: 15px 25px 15px 9px;
  }

  .bio-text {
    grid-column: 6/9;
  }

  .project-info {
    grid-column: 4/6;
  }

  .profile-photo img {
    top: 15%;
    left: 15%;
  }
}

/* --- 1032px (iPad Pro 13") --- */
@media (max-width: 1032px) {
  .sidebar {
    width: 30%;
  }

  .project-detail {
    width: 70%;
  }

  .name-title,
  .name-title-0 {
    width: 70%;
  }

  .project-list li span:nth-child(1) { font-size: 15px; }
  .project-list li span:nth-child(2) { font-size: 13px; }
  .project-list li span:nth-child(3) { font-size: 12px; }

  .menu-title-act, .menu-title, .experiment-title, .experiment-title-act { font-size: 22px; }
  .about-link-act, .about-link { font-size: 22px; }

  .filter-active-label { font-size: 14px; }
  .filter-expand-btn { font-size: 19px; }
  .filter-count { font-size: 13px; }
  .filter-btn { font-size: 12px; }
  .filter-btn::after { font-size: 12px; }
}

/* --- 1024px (Ipad Pro) --- */
@media (max-width: 1024px) {
  .custom-cursor {
    display: none;
  }

  .sidebar {
    width: 30%;
    height: 96vh;
  }

  .project-detail {
    width: 70%;
    grid-template-columns: repeat(2, 1fr);
  }

  .name-title,
  .name-title-0 {
    width: 70%;
  }

  .profile-photo img {
    width: 350px;
    top: 50%;
    left: 5%;
  }

  .name-title,
  .name-title-0 {
    font-size: 8vw;
    bottom: 10px;
    letter-spacing: -6px;
  }

  .intro-text-wt,
  .bio-text,
  .pdf-info,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 17px;
  }

  .A1 {
    font-size: 19px;
  }

  .A2 {
    font-size: 17px;
  }

  .project-list {
    font-size: 16px;
  }

  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act,
  .about-link-act,
  .about-link {
    font-size: 18px;
  }

  .bio-text {
    grid-column: 2;
  }

  .project-info {
    grid-column: 1;
  }
}

/* --- 1025px–1180px fix (override 1024px project-list) --- */
@media (min-width: 1025px) and (max-width: 1180px) {
  .project-list li span:nth-child(1) {
    font-size: 14px;
  }

  .project-list li span:nth-child(2) {
    font-size: 12px;
  }

  .project-list li span:nth-child(3) {
    font-size: 11px;
  }
}

/* --- 820px Ipad Air--- */
@media (max-width: 819px) {
  .sidebar {
    height: 95vh;
  }

  .about-link-act,
  .about-link {
    font-size: 20px;
  }

  .project-detail {
    width: 65%;
    grid-template-columns: repeat(5, 1fr);
  }

  .name-title,
  .name-title-0 {
    width: 65%;
  }

  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act {
    font-size: 20px;
  }

  .project-list {
    font-size: 15px;
  }

  .name-title,
  .name-title-0 {
    letter-spacing: -4px;
  }

  .intro-text-wt,
  .bio-text,
  .pdf-info {
    font-size: 15px;
  }

  .bio-text {
    grid-column: 3/6;
  }

  .project-info {
    grid-column: 1/3;
    font-size: 15px;
  }

  .A1 {
    font-size: 18px;
  }

  .A2 {
    font-size: 15px;
  }

  .profile-photo img {
    width: 100%;
    top: 50%;
    left: 0%;
  }
}

/* Hide desktop layout on mobile */
@media (max-width: 767px) {
  * {
    border-width: 1px !important;
  }
  * {
    box-sizing: content-box;
  }

  html {
    overflow-y: auto;
  }

  body {
    overflow: visible;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .container {
    height: auto;
    min-height: 100vh;
  }

  .project-image {
    margin-top: 20px;
  }

  .project-longtext,
  .project-longtext-single {
    display: block;
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .project-detail-0 .bio-text {
    margin-bottom: 30px;
  }

  .project-longtext p + p {
    margin-top: 20px;
  }

  .sidebar,
  .desktop-project {
    display: none;
  }

  .mobile-project {
    display: block;
    width: 100vw;
  }

  /* unified detail pages */
  .project-detail-0 {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-y: visible;
    padding: 76px 10px 0 10px;
    border-left: none;
  }

  .project-detail-0 .project-info,
  .project-detail-0 .bio-text,
  .project-detail-0 .project-longtext,
  .project-detail-0 .project-longtext-single {
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
  }

  .project-detail-0 .project-image {
    margin-left: -10px;
    margin-right: -10px;
  }

  .project-detail-0 .mobile-name-footer {
    position: relative;
    bottom: auto;
    left: auto;
    padding: 0 20px;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  .project-detail-0 .project-bottom-row {
    padding: 0 10px;
    margin-top: 0px;
    margin-bottom: 20px;
  }

  .project-detail-0 .project-bottom-row .arrow {
    margin-left: 0;
  }

  .name-title-0 {
    display: none;
  }

  .desktop-cta-btn {
    display: none;
  }

  .project-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
  }


  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 8;
    background-color: #F0F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d92e28;
  }

  .mobile-header h1 {
    font-size: 30px;
    font-family: 'Black';
    color: #d92e28;
    padding: 8px 15px 8px 10px;
    letter-spacing: -2px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle svg {
    display: block;
  }

  .mobile-menu-toggle.is-open {
    transform: rotate(45deg);
  }

  .mobile-project .bio-text {
    padding-top: 66px;
    padding-bottom: 0;
  }

  .mobile-project .bio-text p {
    margin: 10px;
  }

  .project-info {
    padding-bottom: 20px;
  }

  .bio-text p,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 17px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .about-btn-group {
    padding-left: 15px;
    padding-right: 15px;
  }

  .mobile-header {
    padding-left: 5px;
    padding-right: 5px;
  }

  .project-detail-0 .project-list {
    padding-left: 5px;
    padding-right: 5px;
  }

  .A1 {
    font-size: 20px;
  }
  .A2 {
    font-size: 17px;
  }

  .profile-photo {
    margin-top: 30px;
  }

  .profile-photo img {
    position: relative;
    width: 100%;
    margin-top: 0;
    margin-bottom: -180px;
    transform: translateY(0);
  }

  .mobile-about {
    overflow: hidden;
  }

  .mobile-project .mobile-name-footer {
    position: relative;
    z-index: 2;
  }

  .mobile-name {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    padding: 0 10px 10px 10px;
    box-sizing: border-box;
    display: block;
    z-index: 12;
    pointer-events: none;
    overflow: hidden;
  }

  .mobile-name svg {
    display: block;
    width: 100%;
    color: #d92e28;
  }

  .mobile-name-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    padding: 0 15px 0 15px;
    box-sizing: border-box;
    display: block;
    z-index: 12;
    pointer-events: none;
    color: #d92e28;
  }

  /* overlay logo shown inside mobile nav menu */
  .overlay-logo {
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    color: #d92e28;
    pointer-events: none;
  }

  .overlay-logo svg {
    display: block;
    width: 100%;
  }

  .overlay .closebtn {
    padding: 0 9px 0 10px;
  }

  .overlay .closebtn svg {
    width: 26px;
    height: 26px;
    position: relative;
    top: 2px;
    right: 0;
  }

  .mobile-name-footer svg {
    display: block;
    width: 100%;
    color: #d92e28;
  }

  .mobile-hero {
    padding-top: 53px;
    padding-bottom: 30px;
    gap: 20px;
  }

  /* works page: clear header + filter bar */
  .mobile-filter-bar ~ .mobile-hero {
    padding-top: 110px;
  }

  .mobile-hero img {
    width: 100%;
    height: 342px;
    object-fit: cover;
  }

  .project-list {
    font-size: 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    font-family: 'Regular';
    padding: 5px 17px 13px 15px;
    border-bottom: 1px solid #d92e28;
  }

  /* ---- Mobile filter bar ---- */
  .mobile-filter-bar {
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    z-index: 7;
    background-color: #F0F0F0;
    border-bottom: 1px solid #d92e28;
    transition: top 0.25s ease;
  }

  .mobile-filter-bar.scrolled-down {
    top: -60px;
  }

  .mobile-filter-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding: 11px 12px;
  }

  .mobile-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: none;
    border: 0.75px solid #d92e28;
    color: #d92e28;
    font-family: 'Regular';
    font-size: 13px;
    padding: 0 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: lowercase;
    transition: background 0.15s, color 0.15s;
    -webkit-appearance: none;
  }

  .mobile-filter-btn.active {
    background: #d92e28;
    color: #F0F0F0;
    font-family: 'Black';
    letter-spacing: -0.3px;
  }

  /* project name */
  .project-list span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 17px;
  }

  .project-list span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 14px;
    margin-top: 2px;
  }

  .project-list span:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 13px;
  }
}

/* --- Tablet Portrait (iPad mini 768px, iPad 11" 820px, iPad Pro 13" 1032px) --- */
@media (min-width: 768px) and (max-width: 1032px) and (orientation: portrait) {
  html {
    overflow-y: auto;
  }

  body {
    overflow: visible;
    width: 100%;
  }

  .container {
    height: auto;
    min-height: 100vh;
  }

  .sidebar,
  .desktop-project {
    display: none;
  }

  .mobile-project {
    display: block;
    width: 100vw;
  }

  .name-title,
  .name-title-0 {
    display: none;
  }

  .desktop-cta-btn {
    display: none;
  }

  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 8;
    background-color: #F0F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d92e28;
    padding-left: 5px;
    padding-right: 5px;
  }

  .mobile-header h1 {
    font-size: 34px;
    font-family: 'Black';
    color: #d92e28;
    padding: 10px 15px 10px 10px;
    letter-spacing: -2px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle svg {
    display: block;
  }

  .mobile-menu-toggle.is-open {
    transform: rotate(45deg);
  }

  .mobile-name {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    padding: 0 10px 10px 10px;
    box-sizing: border-box;
    display: block;
    z-index: 12;
    pointer-events: none;
    overflow: hidden;
  }

  .mobile-name svg {
    display: block;
    width: 100%;
    color: #d92e28;
  }

  .mobile-name-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
    display: block;
    z-index: 12;
    pointer-events: none;
    color: #d92e28;
  }

  .mobile-name-footer svg {
    display: block;
    width: 100%;
    color: #d92e28;
  }

  .overlay-logo {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    color: #d92e28;
    pointer-events: none;
  }

  .overlay-logo svg {
    display: block;
    width: 100%;
  }

  .overlay .closebtn {
    padding: 0 9px 0 10px;
  }

  .overlay .closebtn svg {
    width: 26px;
    height: 26px;
    position: relative;
    top: 2px;
    right: 0;
  }

  .overlay {
    z-index: 13;
  }

  .project-detail-0 {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-y: visible;
    padding: 76px 15px 0 15px;
    border-left: none;
  }

  .project-detail-0 .project-image {
    margin-left: -15px;
    margin-right: -15px;
  }

  .project-detail-0 .mobile-name-footer {
    position: relative;
    bottom: auto;
    left: auto;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    padding: 0 20px;
  }



  .project-detail-0 .project-bottom-row {
    padding: 0 15px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .project-detail-0 .project-bottom-row .arrow {
    margin-left: 0;
  }

  .project-detail-0 .project-list {
    padding-left: 5px;
    padding-right: 5px;
  }

  .project-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
  }

  .project-image {
    margin-top: 20px;
  }

  .project-longtext,
  .project-longtext-single {
    display: block;
    padding: 20px 0 0;
  }

  .project-longtext p + p {
    margin-top: 20px;
  }

  .mobile-hero {
    padding-top: 53px;
    padding-bottom: 30px;
    gap: 20px;
  }

  .mobile-filter-bar ~ .mobile-hero {
    padding-top: 110px;
  }

  .mobile-hero img {
    width: 100%;
    height: 72vw;
    object-fit: cover;
  }

  .project-list {
    font-size: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    padding: 18px 15px;
    border-bottom: 1px solid #d92e28;
  }

  .project-list span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }

  .project-list span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px;
    margin-top: 2px;
  }

  .project-list span:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 14px;
  }

  .mobile-filter-bar {
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    z-index: 7;
    background-color: #F0F0F0;
    border-bottom: 1px solid #d92e28;
    transition: top 0.25s ease;
  }

  .mobile-filter-bar.scrolled-down {
    top: -60px;
  }

  .mobile-filter-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding: 11px 12px;
  }

  .mobile-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: none;
    border: 0.75px solid #d92e28;
    color: #d92e28;
    font-family: 'Regular';
    font-size: 14px;
    padding: 0 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: lowercase;
    transition: background 0.15s, color 0.15s;
    -webkit-appearance: none;
  }

  .mobile-filter-btn.active {
    background: #d92e28;
    color: #F0F0F0;
    font-family: 'Black';
    letter-spacing: -0.3px;
  }

  .bio-text p,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 18px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .A1 {
    font-size: 21px;
  }

  .A2 {
    font-size: 18px;
  }

  .profile-photo {
    margin-top: 30px;
  }

  .profile-photo img {
    position: relative;
    width: 100%;
    margin-top: 0;
    margin-bottom: -180px;
    transform: translateY(0);
  }

  .mobile-about {
    overflow: hidden;
  }

  .mobile-project .mobile-name-footer {
    position: relative;
    z-index: 2;
  }

  .mobile-project .bio-text {
    padding-top: 15px;
    padding-bottom: 0;
  }

  .mobile-project .bio-text p {
    margin: 10px;
  }

  .project-info {
    padding-bottom: 20px;
  }
}

/* --- iPad mini Portrait (744px) --- */
@media (min-width: 700px) and (max-width: 809px) and (orientation: portrait) {
  .project-detail-0 {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-y: visible;
    padding: 76px 10px 0 10px;
    border-left: none;
  }

  .project-detail-0 .project-info,
  .project-detail-0 .bio-text,
  .project-detail-0 .project-longtext,
  .project-detail-0 .project-longtext-single {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .project-detail-0 .project-image {
    margin-left: -10px;
    margin-right: -10px;
  }

  .overlay a {
    font-size: calc(9vw + 2px);
  }

  .overlay {
    padding: 0;
  }

  .overlay-header {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3px 15px;
  }

  .overlay .closebtn {
    position: static;
    height: auto;
    padding: 12px 0;
  }

  .overlay .closebtn svg {
    width: 34px;
    height: 34px;
    position: static;
    top: auto;
  }

  .overlay-content {
    padding-left: 25px;
    padding-top: 10px;
  }

  .mobile-hero img {
    width: 100%;
    height: 72vw;
    object-fit: cover;
  }

  .bio-text p,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 21px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .project-info {
    padding-top: 10px;
  }

  .bio-text {
    padding-bottom: 10px;
  }

  .project-longtext,
  .project-longtext-single {
    padding-bottom: 5px;
  }

  .mobile-about {
    padding-top: 64px;
  }

  .mobile-about .bio-text {
    padding-top: 10px;
  }



  .profile-photo img {
    margin-bottom: -270px;
  }

  .A1 {
    font-size: 24px;
  }

  .A2 {
    font-size: 21px;
  }

  .project-list span:nth-child(1) {
    font-size: 21px;
  }

  .project-list span:nth-child(2) {
    font-size: 18px;
  }

  .project-list span:nth-child(3) {
    font-size: 17px;
  }

  .mobile-header h1 {
    font-size: 35px;
  }

  .mobile-menu-toggle {
    margin-right: 15px;
  }

  .mobile-filter-btn {
    font-size: 17px;
  }

  .mobile-filter-scroll {
    padding-top: 26px;
    padding-bottom: 16px;
    padding-left: 15px;
  }

  .project-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-header {
    padding: 3px 10px;
  }

  .project-cta-btn {
    font-size: 22px;
  }

  .mobile-name-footer {
    padding: 0 20px;
  }

  .project-detail-0 .mobile-name-footer {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    padding: 0 20px;
  }

  .overlay-logo {
    left: 20px;
    right: 20px;
  }
}

/* --- iPad 11" + 13" Portrait base (810–1032px) --- */
@media (min-width: 810px) and (max-width: 1032px) and (orientation: portrait) {
  .project-list {
    padding: 14px 25px 25px 25px;
  }

  .mobile-name-footer {
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 0;
  }

  .project-detail-0 .mobile-name-footer {
    padding: 0 25px 0 25px;
  }

  .overlay a {
    font-size: 9vw;
  }

  .overlay .closebtn {
    height: 73px;
    padding: 0 25px 0 10px;
  }

  .overlay .closebtn svg {
    width: 34px;
    height: 34px;
    position: static;
    top: auto;
  }

  .overlay-content {
    padding-left: 25px;
    padding-top: 5px;
  }

  .overlay-logo {
    left: 25px;
    right: 25px;
    bottom: 0;
  }

  .mobile-about {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-top: 68px;
  }

  .mobile-about .profile-photo {
    flex: 0 0 40%;
    max-width: 40%;
    order: 1;
    margin-top: 0;
  }

  .mobile-about .profile-photo img {
    position: relative;
    width: 85%;
    margin-left: 20px;
    margin-top: 40px;
    margin-bottom: 0;
    transform: none;
  }

  .mobile-about .bio-text {
    flex: 0 0 60%;
    max-width: 60%;
    order: 2;
  }

  .mobile-about .mobile-name-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 0 25px;
  }

  .bio-text p,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 19px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 15px;
  }

  .project-detail-0 .project-longtext,
  .project-detail-0 .project-longtext-single {
    margin-left: 40%;
    width: 60%;
    box-sizing: border-box;
  }

  .project-detail-0 .project-info {
    float: left;
    width: 40%;
    margin-left: 0;
    box-sizing: border-box;
  }

  .project-detail-0 .bio-text {
    float: left;
    width: 60%;
    margin-left: 0;
    margin-bottom: 30px;
    box-sizing: border-box;
  }

  .project-detail-0 .project-image {
    clear: both;
  }

  .arrow {
    font-size: 117px;
  }

  .pdf-link {
    font-size: 21px;
  }

  .project-cta-btn {
    font-size: 23px;
    border: 1px solid #d92e28;
  }

  .mobile-filter-btn {
    border: 1px solid #d92e28;
  }

  .project-detail-0 .project-longtext,
  .project-detail-0 .project-longtext-single {
    padding-top: 25px;
    padding-bottom: 15px;
  }

  .A1 {
    font-size: 22px;
  }

  .A2 {
    font-size: 19px;
  }

  .project-list span:nth-child(1) {
    font-size: 23px;
  }

  .project-list span:nth-child(2) {
    font-size: 19px;
  }

  .project-list span:nth-child(3) {
    font-size: 18px;
  }

  .mobile-header {
    padding: 5px 17px;
  }

  .mobile-header h1 {
    font-size: 41px;
    padding: 5px 10px;
  }

  .mobile-menu-toggle svg {
    width: 30px;
    height: 30px;
  }

  .mobile-filter-bar {
    top: 68px;
  }

  .mobile-filter-bar.scrolled-down {
    top: -68px;
  }

  .mobile-filter-scroll {
    padding: 23px 22px 20px 22px;
    gap: 10px;
  }

  .mobile-filter-btn {
    font-size: 19px;
    height: 34px;
    padding: 0 14px;
  }

  .mobile-hero {
    padding-top: 60px;
  }

  .mobile-filter-bar ~ .mobile-hero {
    padding-top: 120px;
  }

  .project-detail-0 {
    padding-top: 80px;
  }
}

/* --- iPad Pro 13" Portrait — font size overrides (+2px) --- */
@media (min-width: 900px) and (max-width: 1032px) and (orientation: portrait) {
  .bio-text p,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 22px;
  }

  .A1 {
    font-size: 25px;
  }

  .A2 {
    font-size: 22px;
  }

  .project-list span:nth-child(1) {
    font-size: 26px;
  }

  .project-list span:nth-child(2) {
    font-size: 22px;
  }

  .project-list span:nth-child(3) {
    font-size: 21px;
  }

  .mobile-header h1 {
    font-size: 44px;
  }

  .mobile-filter-btn {
    font-size: 22px;
  }

  .arrow {
    font-size: 120px;
  }

  .pdf-link {
    font-size: 24px;
  }

  .project-cta-btn {
    font-size: 26px;
  }
}

@media (max-width: 390px) {
  .mobile-header h1 {
    font-size: 28px;
  }

  .bio-text p,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 16px;
  }

  .A1 {
    font-size: 19px;
  }
  .A2 {
    font-size: 16px;
  }

  .project-list {
    font-size: 15px;
  }

  .mobile-hero {
    padding-bottom: 25px;
  }
}

@media (max-width: 375px) {
  .project-list {
    font-size: 14px;
  }

  .bio-text p,
  .project-info,
  .project-longtext,
  .project-longtext-single {
    font-size: 15px;
  }

  .A1 {
    font-size: 18px;
  }
  .A2 {
    font-size: 15px;
  }
}

/* --- iPad 11" Landscape (1180 x 820) --- */
@media (min-width: 1161px) and (max-width: 1200px) and (orientation: landscape) {
  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act {
    font-size: 20px;
  }

  .about-link-act,
  .about-link {
    font-size: 20px;
  }

  .project-list li span:nth-child(1) {
    font-size: 14px;
  }

  .project-list li span:nth-child(2) {
    font-size: 12px;
  }

  .project-list li span:nth-child(3) {
    font-size: 11px;
    margin-right: -1px;
  }

  .filter-active-label {
    font-size: 13px;
  }

  .filter-expand-btn {
    font-size: 18px;
  }

  .filter-count {
    font-size: 12px;
  }

  .filter-btn {
    font-size: 13px;
  }
}

/* --- iPad mini Landscape (1133 x 744) --- */
@media (min-width: 1100px) and (max-width: 1160px) and (orientation: landscape) {
  .menu-title-act,
  .menu-title,
  .experiment-title,
  .experiment-title-act {
    font-size: 18px;
  }

  .about-link-act,
  .about-link {
    font-size: 18px;
  }

  .project-list li span:nth-child(1) {
    font-size: 14px;
  }

  .project-list li span:nth-child(2) {
    font-size: 12px;
  }

  .project-list li span:nth-child(3) {
    font-size: 11px;
    margin-right: -1px;
  }

  .filter-active-label {
    font-size: 13px;
  }

  .filter-expand-btn {
    font-size: 18px;
  }

  .filter-count {
    font-size: 12px;
  }

  .filter-btn {
    font-size: 11px;
  }
}
