:root {
  --bg: #1f2124;
  --bg-noise:
    url("./assets/images/bg-mosaic.png") center top / 300px 300px repeat,
    linear-gradient(180deg, #26292d 0%, #1b1d20 100%);
  --paper: #ffffff;
  --paper-shadow: rgba(0, 0, 0, 0.28);
  --ink: #27211c;
  --muted: #73675c;
  --accent: #c8424a;
  --accent-dark: #8a262d;
  --gold: #d7a930;
  --teal: #18b6a2;
  --line: rgba(39, 33, 28, 0.12);
  --nav-dark: #26282b;
  --nav-active: #18b6a2;
  --font-display: "Abril Fatface", serif;
  --font-serif: "Instrument Serif", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --desktop-cover-width: clamp(24rem, 35vw, 31rem);
  --desktop-spread-width: min(96rem, calc(100vw - 3rem));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}

body {
  background-image: var(--bg-noise);
  background-color: var(--bg);
}

button,
input,
textarea,
a {
  font: inherit;
}

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

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.language-switcher {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 20;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(16, 16, 18, 0.46);
  backdrop-filter: blur(14px);
}

.language-pill {
  border: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  color: #f4efe8;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-pill.is-active {
  background: var(--paper);
  color: var(--ink);
}

.book-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 2rem 3rem;
  position: relative;
}

.cover-panel {
  width: min(100%, var(--desktop-cover-width));
  height: min(calc(100vh - 8rem), 44rem);
  aspect-ratio: 0.82;
  position: relative;
  border-radius: 0.1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(75, 43, 20, 0.22);
  transition: transform 900ms cubic-bezier(0.22, 0.8, 0.2, 1), opacity 450ms ease;
  transform-origin: right center;
  background:
    linear-gradient(180deg, rgba(11, 62, 64, 0.3), rgba(0, 0, 0, 0.2)),
    linear-gradient(135deg, rgba(0, 181, 160, 0.94), rgba(12, 72, 98, 0.84));
}

.cover-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 22%),
    linear-gradient(0deg, rgba(20, 10, 16, 0.28), transparent 38%);
  pointer-events: none;
}

.cover-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.06) 18%, transparent 38%, transparent 100%),
    url("./assets/images/cover-portrait.png") center 84% / 121% auto no-repeat;
  mix-blend-mode: normal;
  opacity: 0.94;
}

.cover-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.1rem 1rem;
  color: #fff6eb;
}

.cover-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  min-height: 0.9rem;
}

.cover-name {
  margin: 0.1rem 0 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.15vw, 2.9rem);
  line-height: 0.96;
  text-shadow: 0.12rem 0.12rem 0 var(--accent);
  text-align: center;
  white-space: nowrap;
}

.cover-role {
  margin: 0.6rem auto 1.15rem;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 1.35vw, 1.16rem);
  line-height: 1.1;
  text-align: center;
  text-shadow: 0.06rem 0.06rem 0 rgba(0, 0, 0, 0.32);
}

.cover-highlights {
  margin: 0;
  display: grid;
  gap: 0.95rem;
  max-width: 9.25rem;
  margin-top: 1rem;
}

.cover-highlights div {
  display: grid;
  gap: 0.12rem;
}

.cover-highlights dt {
  color: #ffd24c;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-shadow: 0.06rem 0.06rem 0 rgba(0, 0, 0, 0.42);
}

.cover-highlights dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 0.92;
  text-shadow: 0.06rem 0.06rem 0 rgba(0, 0, 0, 0.42);
}

.cover-editorial {
  margin-top: auto;
  background: rgba(10, 10, 10, 0.92);
  padding: 0.35rem 0.5rem 0.6rem;
  width: calc(100% - 11rem);
  margin-left: 0.1rem;
}

.cover-editorial-label {
  display: block;
  color: #f7df62;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.cover-editorial-text {
  margin: 0.35rem 0 0;
  color: #fff4a8;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1;
}

.open-ribbon {
  position: absolute;
  right: -0.5rem;
  top: 53%;
  transform: translateY(-50%);
  border: 0;
  padding: 0.72rem 1.05rem;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: -0.5rem 0.5rem 1.3rem rgba(0, 0, 0, 0.3);
  animation: ribbon-callout 2.8s ease-in-out 0.5s infinite;
  transition:
    transform 180ms ease,
    right 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.open-ribbon::before,
.open-ribbon::after {
  content: "";
  position: absolute;
  right: 100%;
  border-right: 0.7rem solid var(--accent);
  border-top: 1.1rem solid transparent;
  border-bottom: 1.1rem solid transparent;
  top: 0;
}

.open-ribbon::after {
  right: auto;
  left: 100%;
  border-right: none;
  border-left: 0.7rem solid #9b3138;
}

.open-ribbon:hover,
.open-ribbon:focus-visible {
  right: -0.2rem;
  transform: translateY(-50%) scale(1.05);
  background: #dc545c;
  box-shadow: -0.7rem 0.7rem 1.5rem rgba(0, 0, 0, 0.34);
  animation-play-state: paused;
}

.open-ribbon:hover::before,
.open-ribbon:focus-visible::before {
  border-right-color: #dc545c;
}

.open-ribbon:hover::after,
.open-ribbon:focus-visible::after {
  border-left-color: #a93c43;
}

@keyframes ribbon-callout {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
    box-shadow: -0.5rem 0.5rem 1.3rem rgba(0, 0, 0, 0.3);
  }

  18% {
    transform: translateY(-50%) translateX(0.28rem);
    box-shadow: -0.75rem 0.75rem 1.5rem rgba(0, 0, 0, 0.34);
  }

  32% {
    transform: translateY(-50%) translateX(0);
    box-shadow: -0.5rem 0.5rem 1.3rem rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .open-ribbon {
    animation: none;
    transition: none;
  }
}

.book-panel {
  width: var(--desktop-spread-width);
  max-width: calc(100vw - 4rem);
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 380ms ease, transform 700ms ease;
}

.book-spread {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: min(96rem, calc(100vw - 3rem));
  height: min(42rem, 74vh);
  max-height: min(42rem, 74vh);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05), transparent 6%, transparent 94%, rgba(0, 0, 0, 0.04)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.32)),
    var(--paper);
  box-shadow: 0 0 0 1px rgba(219, 214, 206, 0.45), 0 1.6rem 4rem rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.book-left,
.book-center,
.book-right {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 36%),
    linear-gradient(180deg, rgba(252, 252, 252, 0.8), rgba(240, 238, 232, 0.28)),
    var(--paper);
}

.book-left::after,
.book-center::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(56, 43, 28, 0.18), transparent);
}

.paper-column {
  position: relative;
  height: 100%;
  overflow: auto;
  padding: 1.8rem 1.6rem 1.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(115, 103, 92, 0.35) transparent;
}

.paper-column::-webkit-scrollbar {
  width: 8px;
}

.paper-column::-webkit-scrollbar-thumb {
  background: rgba(115, 103, 92, 0.28);
  border-radius: 999px;
}

.paper-column::-webkit-scrollbar-track {
  background: transparent;
}

@media (min-width: 941px) {
  .book-left,
  .book-center,
  .book-right {
    min-height: 0;
  }

  .paper-column {
    min-height: 0;
  }
}

.section-heading {
  position: relative;
  text-align: center;
  margin-bottom: 1rem;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(39, 33, 28, 0.14);
}

.section-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #2f2a28;
  color: #f5efe8;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.55rem;
  line-height: 1;
}

.section-impact {
  max-width: 17ch;
  margin: 0 auto 1.1rem;
  text-align: center;
  font-size: 2.05rem;
  line-height: 1.35;
  color: #332c27;
}

.section-impact::first-line {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.16rem;
  text-underline-offset: 0.18rem;
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: center;
}

.resume-block,
.contact-block {
  margin-top: 1.5rem;
}

.minor-heading {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.focus-line,
.languages-line {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding-top: 0.3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3.3rem;
  top: 1rem;
  bottom: 1rem;
  border-left: 1px dashed rgba(39, 33, 28, 0.16);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 9.8rem 1fr;
  gap: 0.72rem;
}

.timeline-year {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 0.15rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(39, 33, 28, 0.12);
  border-radius: 0.18rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.82rem;
  line-height: 1;
  color: #403329;
  text-align: center;
  box-shadow: 0 0.2rem 0.45rem rgba(0, 0, 0, 0.04);
}

.timeline-body h3 {
  margin: 0;
  font-size: 1.02rem;
}

.timeline-body .meta {
  margin: 0.15rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.timeline-body p,
.timeline-body ul {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.timeline-body ul {
  padding-left: 1rem;
}

.timeline.compact .timeline-body p {
  color: var(--muted);
}

.download-row {
  margin-top: 2rem;
}

.download-button,
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  border: 1px solid #2f2a28;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  background: #2f2a28;
  color: #fff9ef;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.download-button:hover,
.send-button:hover,
.send-button:focus-visible,
.download-button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  display: grid;
  gap: 0.65rem;
}

.portfolio-card-media {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.portfolio-frame {
  display: block;
  padding: 0.28rem;
  background: #fff;
  border-radius: 0.12rem;
  box-shadow: 1px 1px 1px #d1d1d1;
  position: relative;
}

.portfolio-frame::before {
  content: "";
  position: absolute;
  inset: 0.15rem;
  z-index: -1;
  border-radius: 12px / 65px;
  box-shadow: 0 0 8px rgba(85, 85, 85, 0.32);
}

.portfolio-frame img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  display: block;
}

.portfolio-card h3 {
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
}

.portfolio-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.portfolio-links a {
  border: 1px solid rgba(39, 33, 28, 0.15);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.62);
}

.portfolio-links .tag-site,
.portfolio-links .tag-website {
  color: #24587b;
  background: rgba(36, 88, 123, 0.1);
  border-color: rgba(36, 88, 123, 0.22);
}

.portfolio-links .tag-instagram {
  color: #b13b71;
  background: rgba(177, 59, 113, 0.1);
  border-color: rgba(177, 59, 113, 0.22);
}

.portfolio-links .tag-linkedin {
  color: #1f5f96;
  background: rgba(31, 95, 150, 0.1);
  border-color: rgba(31, 95, 150, 0.22);
}

.portfolio-links .tag-app-store {
  color: #275ecf;
  background: rgba(39, 94, 207, 0.1);
  border-color: rgba(39, 94, 207, 0.2);
}

.close-book {
  position: absolute;
  top: 0;
  right: 1.7rem;
  border: 0;
  width: 2.5rem;
  height: 3rem;
  background: #2f2a28;
  color: #f5efe8;
  cursor: pointer;
  border-left: 1px dashed rgba(255, 255, 255, 0.35);
  border-right: 1px dashed rgba(255, 255, 255, 0.35);
  box-shadow: 0.18rem 0 0 #2f2a28, -0.18rem 0 0 #2f2a28;
}

.close-book::before,
.close-book::after {
  content: "";
  position: absolute;
  top: 100%;
  border-top: 0.85rem solid #2f2a28;
}

.close-book::before {
  left: -0.15rem;
  border-right: 1.38rem solid transparent;
}

.close-book::after {
  right: -0.15rem;
  border-left: 1.38rem solid transparent;
}

.close-book i {
  position: relative;
  top: -0.05rem;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 33, 28, 0.16);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  transition: border-color 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-tiktok {
  color: #111111;
}

.social-x {
  color: #111111;
}

.social-youtube {
  color: #d92525;
}

.social-linkedin {
  color: #0a66c2;
}

.social-github {
  color: #24292f;
}

.social-vsco {
  color: #6a5a4a;
}

.social-goodreads {
  color: #7a5a38;
}

.social-medium {
  color: #111111;
}

.social-spotify {
  color: #1db954;
}

.social-email {
  color: #c04b42;
}

.social-link.social-tiktok:hover,
.social-link.social-tiktok:focus-visible {
  border-color: rgba(17, 17, 17, 0.35);
  background: rgba(17, 17, 17, 0.06);
}

.social-link.social-x:hover,
.social-link.social-x:focus-visible {
  border-color: rgba(17, 17, 17, 0.35);
  background: rgba(17, 17, 17, 0.06);
}

.social-link.social-youtube:hover,
.social-link.social-youtube:focus-visible {
  border-color: rgba(217, 37, 37, 0.35);
  background: rgba(217, 37, 37, 0.08);
}

.social-link.social-linkedin:hover,
.social-link.social-linkedin:focus-visible {
  border-color: rgba(10, 102, 194, 0.35);
  background: rgba(10, 102, 194, 0.08);
}

.social-link.social-github:hover,
.social-link.social-github:focus-visible {
  border-color: rgba(36, 41, 47, 0.35);
  background: rgba(36, 41, 47, 0.06);
}

.social-link.social-vsco:hover,
.social-link.social-vsco:focus-visible {
  border-color: rgba(106, 90, 74, 0.35);
  background: rgba(106, 90, 74, 0.08);
}

.social-link.social-goodreads:hover,
.social-link.social-goodreads:focus-visible {
  border-color: rgba(122, 90, 56, 0.35);
  background: rgba(122, 90, 56, 0.08);
}

.social-link.social-medium:hover,
.social-link.social-medium:focus-visible {
  border-color: rgba(17, 17, 17, 0.35);
  background: rgba(17, 17, 17, 0.06);
}

.social-link.social-spotify:hover,
.social-link.social-spotify:focus-visible {
  border-color: rgba(29, 185, 84, 0.4);
  background: rgba(29, 185, 84, 0.09);
}

.social-link.social-email:hover,
.social-link.social-email:focus-visible {
  border-color: rgba(192, 75, 66, 0.35);
  background: rgba(192, 75, 66, 0.08);
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 0;
  background-image: repeating-linear-gradient(
    90deg,
    #d84d3f 0 12px,
    transparent 12px 20px,
    #2d4f8b 20px 32px,
    transparent 32px 40px
  );
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: top left;
}

.contact-card > div {
  order: 2;
}

.contact-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent-dark);
}

.contact-email,
.contact-location {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.contact-email {
  font-family: "Sacramento", cursive;
  font-size: 2rem;
  line-height: 1;
  color: #c25337;
}

.contact-stamp {
  order: 1;
  width: 5.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0.28rem solid #fff;
  box-shadow: 0.45rem 0.45rem 0 rgba(0, 0, 0, 0.08);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(39, 33, 28, 0.18);
  background: rgba(255, 255, 255, 0.76);
  padding: 0.8rem 0.9rem;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

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

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.3);
}

.project-modal-dialog {
  position: relative;
  margin: 2.5rem auto;
  width: min(92vw, 1100px);
  max-height: calc(100vh - 5rem);
  overflow: auto;
  background: #fff;
  padding: 2rem 2.2rem 2.6rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.16);
}

.project-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.project-modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2.1rem;
}

.project-modal-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-modal-nav,
.project-modal-close {
  border: 0;
  background: transparent;
  color: #5d5d5d;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
}

.project-modal-close {
  font-family: var(--font-serif);
  font-size: 1.9rem;
}

.project-modal-body {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.project-modal-gallery {
  display: grid;
  gap: 2rem;
}

.project-modal-main-image,
.project-modal-secondary-image {
  width: 100%;
  display: block;
}

.project-modal-block {
  margin-bottom: 1.8rem;
}

.project-modal-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.project-modal-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-modal-tag {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  background: #edf1f4;
  color: #7f8a94;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
}

.project-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: #2f2a28;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.send-button {
  justify-self: end;
  min-width: auto;
  border-radius: 0;
}

.mobile-nav {
  display: none;
}

body.is-open .cover-panel {
  opacity: 0;
  transform: perspective(1400px) rotateY(-105deg) translateX(-13rem) scale(0.86);
  pointer-events: none;
}

body.is-open .book-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

@media (min-width: 941px) {
  body.is-open {
    overflow: hidden;
  }
}

@media (max-width: 940px) {
  :root {
    --bg: #26282d;
    --bg-noise: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 26%),
      radial-gradient(circle at bottom left, rgba(207, 44, 84, 0.14), transparent 25%),
      linear-gradient(180deg, #292b31 0%, #1c1d22 100%);
  }

  .book-stage {
    padding: 1rem 0 0;
    display: block;
  }

  .language-switcher {
    top: 0.8rem;
    right: 0.8rem;
  }

  .cover-panel,
  .book-panel {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
  }

  .cover-panel {
    min-height: 100vh;
    height: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .cover-inner {
    min-height: 100vh;
    padding: 5.2rem 1rem 6rem;
  }

  .cover-name {
    max-width: none;
    margin-top: 0.1rem;
    font-size: clamp(2.05rem, 9.2vw, 3.1rem);
    line-height: 0.96;
    white-space: normal;
  }

  .cover-role {
    margin: 0.6rem auto 1.15rem;
    max-width: 18ch;
    font-size: clamp(0.92rem, 4.2vw, 1.12rem);
    line-height: 1.1;
  }

  .cover-highlights {
    max-width: 8.8rem;
  }

  .cover-editorial {
    width: calc(100% - 3.4rem);
  }

  .open-ribbon {
    right: -0.3rem;
    padding-inline: 1rem;
    letter-spacing: 0.12em;
  }

  .book-panel {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .book-spread {
    display: block;
    min-height: auto;
    box-shadow: none;
    background: transparent;
  }

  .book-left,
  .book-center,
  .book-right {
    display: none;
    min-height: 100vh;
  }

  body.mobile-resume .book-left,
  body.mobile-portfolio .book-center,
  body.mobile-contact .book-right {
    display: block;
  }

  .paper-column {
    padding: 4.2rem 1rem 6rem;
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 28%),
      var(--paper);
  }

  .book-left::after,
  .book-center::after {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section-impact {
    font-size: 1.6rem;
  }

  .timeline::before {
    display: none;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .timeline-year {
    font-size: 1.3rem;
    max-width: 12rem;
  }

  .contact-card {
    align-items: flex-start;
  }

  .project-modal-dialog {
    margin: 1rem auto;
    width: min(96vw, 1100px);
    max-height: calc(100vh - 2rem);
    padding: 1.25rem;
  }

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

  .contact-stamp {
    width: 4.6rem;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: var(--nav-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-button {
    border: 0;
    background: var(--nav-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 1rem 0.5rem;
    font-size: 1.05rem;
    cursor: pointer;
  }

  .mobile-nav-button.is-active {
    background: var(--nav-active);
    color: #fff;
  }

  body.is-open .cover-panel {
    display: none;
  }

  body.is-open .book-panel {
    display: block;
  }

  body:not(.is-open) .book-panel,
  body:not(.is-open) .mobile-nav {
    display: none;
  }
}
