
/* ── LEFT-page photo: printed on the page, never spills to the right ── */
.mv2a-photo {
  position: absolute;
  inset: 14px;                 /* small elegant internal margin */
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: #0d1524;
  box-shadow: inset 0 0 0 1px rgba(227,222,207,0.12), inset 0 0 46px rgba(0,0,0,0.38);
}

/* ── RIGHT-page typography: premium editorial sizing ── */
.mv2a-page__body h3 {
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.mv2a-page__body p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 14px;
  max-width: 30ch;
}
.mv2a-page__body .mv2a-list { font-size: 1rem; margin-top: 6px; }
.mv2a-page__body .mv2a-list li { margin-bottom: 10px; }
.mv2a-kicker {
  margin: 0 0 16px;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7c3aed;
}
/* generous breathing room inside text faces */
.mv2a-page__front { padding: clamp(20px, 9%, 36px); }
.mv2a-page__back  { padding: clamp(20px, 9%, 36px); }

/* dark-mode page text (from the approved dark theme) */
.mv2a-page__body { color: #e3decf; }

/* ============================================================
   About Me section + Interactive 3D Book — CLEAN REBUILD
   (supersedes all previous edits of this file; same classes)
   Book ported 1:1 from VengeanceUI interactive-book.tsx:
   open 1.5s cubic-bezier(0.25,0,0,1) · flip 0.6s
   cubic-bezier(0.645,0.045,0.355,1) · hover peek -15°.
   ============================================================ */

.mv2-about {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.5rem, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  color: #f5f4f8;
  overflow: hidden;
}
.mv2-about__eyebrow {
  margin: 0;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 244, 248, 0.7);
}
.mv2-about__me { color: #a78bfa; }

.mv2-about__title {
  margin: 0;
  font-family: var(--font-instrument-serif, Georgia, serif);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}
.mv2-about__sub {
  margin: 0 0 1.5rem;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 0.95rem;
  color: #9ca3af;
}

/* ── book stage: width 3.5×book (closed→center, open→spread) ── */
.mv2a-book {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  max-width: 100%;
}
.mv2a-book__scaler {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform-origin: center;
}
/* the shifting element — ORIGINAL uses translateX, but this static page's
   environment (perspective + preserve-3d ancestors) suppresses transforms
   on this node entirely (verified live). The LEFT-based shift reproduces
   the identical motion without transforms. */
.mv2a-book__body {
  position: absolute;
  left: calc(50% - var(--mv2a-half, 170px));
  top: 50px;
  transform-style: preserve-3d;
  transition: left 1.5s cubic-bezier(0.25, 0, 0, 1);
  will-change: left;
}
.mv2a-book.is-open .mv2a-book__body {
  left: 50%;
}

/* ── front cover ── */
.mv2a-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(0.25, 0, 0, 1);
  z-index: 100;
}
.mv2a-book.is-hover .mv2a-cover { transform: rotateY(-15deg); }
.mv2a-book.is-open .mv2a-cover { transform: rotateY(-180deg); }
.mv2a-cover__front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0 6px 3px 3px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  cursor: pointer;
}
.mv2a-cover__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.mv2a-book.is-hover .mv2a-cover__img { transform: scale(1.05); }
.mv2a-cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
}
.mv2a-cover__meta {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  color: #fff;
  text-align: left;
}
.mv2a-cover__title {
  margin: 0 0 4px;
  font-family: var(--font-instrument-serif, Georgia, serif);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.mv2a-cover__author {
  margin: 0;
  display: inline-block;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 4px;
}
.mv2a-cover__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0.4;
}
.mv2a-cover__spine2 {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.3);
}
.mv2a-cover__inner {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg) translateZ(0.5px);
  border-radius: 6px 3px 3px 6px;
  background: #fdfbf7;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-right: 1px solid #e5e5e5;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.3s;
}
.mv2a-cover__inner:hover { background: #fcfaf5; }
.mv2a-cover__inner-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0.8;
}
.mv2a-cover__inner-title {
  margin: 0 0 8px;
  font-family: var(--font-instrument-serif, Georgia, serif);
  font-size: 1.5rem;
  color: #262626;
  letter-spacing: 0.04em;
}
.mv2a-cover__inner-rule { width: 32px; height: 1px; background: #d4d4d4; margin-bottom: 12px; }
.mv2a-cover__inner-sub {
  margin: 0;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ── pages ── */
.mv2a-pages { position: absolute; inset: 0; z-index: 0; transform-style: preserve-3d; }
.mv2a-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  background: #fdfbf7;
  border-radius: 0 6px 3px 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  border: 1px solid #f5f5f5;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.mv2a-page.is-flipped { transform: rotateY(-180deg); }
.mv2a-page__front,
.mv2a-page__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 6%, 32px);
  background: #fdfbf7;
  cursor: pointer;
  transition: background-color 0.3s;
}
.mv2a-page__front:hover, .mv2a-page__back:hover { background: #fcfaf5; }
.mv2a-page__front { transform: translateZ(0.5px); border-radius: 0 6px 3px 3px; }
.mv2a-page__back {
  transform: rotateY(180deg) translateZ(0.5px);
  background: #fdfbf7;
  border-right: 1px solid #e5e5e5;
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
}
.mv2a-page__num-r { font-family: var(--mv2-mono, ui-monospace, Menlo, monospace); font-size: 12px; color: #a3a3a3; text-align: right; margin-bottom: 16px; letter-spacing: 0.08em; }
.mv2a-page__num-l { font-family: var(--mv2-mono, ui-monospace, Menlo, monospace); font-size: 12px; color: #a3a3a3; text-align: left; margin-bottom: 16px; letter-spacing: 0.08em; }
.mv2a-page__body {
  flex: 1;
  min-height: 0;
  font-family: var(--font-instrument-serif, Georgia, serif);
  color: #404040;
  line-height: 1.625;
  user-select: none;
}
.mv2a-page__body h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  color: #262626;
  letter-spacing: -0.015em;
}
.mv2a-page__body p { margin: 0 0 10px; font-size: 0.85rem; }
.mv2a-page__shade-l { position: absolute; left: 0; top: 0; bottom: 0; width: 32px; background: linear-gradient(to right, rgba(0,0,0,0.05), transparent); pointer-events: none; mix-blend-mode: multiply; }
.mv2a-page__shade-r { position: absolute; right: 0; top: 0; bottom: 0; width: 32px; background: linear-gradient(to left, rgba(0,0,0,0.05), transparent); pointer-events: none; mix-blend-mode: multiply; }
.mv2a-page__ghost {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.03;
  font-family: var(--font-instrument-serif, Georgia, serif);
  font-style: italic;
  font-weight: 700;
  font-size: 6rem;
  color: #000;
}

/* ── page content helpers ── */
.mv2a-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  background-color: #efece4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mv2a-img--ph {
  background: linear-gradient(135deg, #ece7dc, #dcd5c6);
  color: #a8a08e;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mv2a-list { margin: 0; padding: 0; list-style: none; font-size: 0.85rem; }
.mv2a-list li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.mv2a-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
}
.mv2a-block { margin-bottom: 14px; }
.mv2a-block__head { margin: 0 0 2px; font-size: 0.95rem; font-weight: 600; color: #262626; font-family: var(--mv2-mono, ui-monospace, Menlo, monospace); }
.mv2a-block__sub { margin: 0; font-size: 0.8rem; color: #737373; }

/* certification card */
.mv2a-cert {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e7e2d8;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.mv2a-cert__img {
  width: 64px;
  height: 48px;
  flex: none;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #efece4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #a8a08e;
  overflow: hidden;
}
.mv2a-cert__meta { min-width: 0; flex: 1; }
.mv2a-cert__title { margin: 0; font-size: 0.8rem; font-weight: 600; color: #262626; font-family: var(--mv2-mono, ui-monospace, Menlo, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv2a-cert__org { margin: 2px 0 0; font-size: 0.72rem; color: #737373; }
.mv2a-cert__link {
  flex: none;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 0.72rem;
  color: #7c3aed;
  text-decoration: none;
  white-space: nowrap;
}
.mv2a-cert__link:hover { text-decoration: underline; }

/* final page */
.mv2a-final { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 10px; }
.mv2a-final p { margin: 0; font-size: 0.9rem; }
.mv2a-final .mv2a-final__accent { color: #7c3aed; font-weight: 600; }
.mv2a-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 0.85rem;
  color: #fff;
  background: #7c3aed;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.mv2a-cta:hover { background: #6d28d9; transform: translateY(-1px); }

/* back cover */
.mv2a-backcover {
  position: absolute;
  inset: 0;
  background: #fdfbf7;
  border-radius: 0 6px 3px 3px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e5e5;
  transform: translateZ(-1px);
  z-index: -1;
}
.mv2a-backcover__mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.4;
}
.mv2a-backcover__end { margin: 0; font-family: var(--font-instrument-serif, Georgia, serif); font-style: italic; color: #737373; }
.mv2a-again {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #525252;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.mv2a-again:hover { background: #e5e5e5; }
.mv2a-again svg { width: 14px; height: 14px; }

/* ── controls ── */
.mv2a-close {
  position: absolute;
  top: 32px;
  right: 32px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  backdrop-filter: blur(4px);
  color: #262626;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s;
}
.mv2a-close:hover { background: #fff; border-color: #e5e5e5; transform: scale(1.1); }
.mv2a-close svg { width: 24px; height: 24px; display: block; }
.mv2a-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mv2-mono, ui-monospace, Menlo, monospace);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3a3a3;
  cursor: pointer;
  z-index: 50;
  transition: color 0.3s;
  white-space: nowrap;
}
.mv2a-hint:hover { color: #525252; }
.mv2a-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(4px);
  color: #262626;
  cursor: pointer;
  z-index: 900;
  transition: background 0.3s, transform 0.3s;
}
.mv2a-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.mv2a-arrow--l { left: 8%; }
.mv2a-arrow--r { right: 8%; }
.mv2a-arrow svg { width: 22px; height: 22px; display: block; }

/* mobile */
@media (max-width: 640px) {
  .mv2a-close { top: 10px; right: 10px; }
  .mv2a-arrow--l { left: 2%; }
  .mv2a-arrow--r { right: 2%; }
}
@media (prefers-reduced-motion: reduce) {
  .mv2a-book__body, .mv2a-cover, .mv2a-page { transition-duration: 0.01s; }
}

/* ============================================================
   DARK MODE BOOK — user request 2026-09-09 (image ref):
   dark midnight-navy leather book, cream text, NO photo on the
   cover; cover = inset cream frame + corner sparkle stars +
   italic "Mina Medhat" + large central sparkle.
   CSS-ONLY theming of the verbatim React bundle (book-bundle.js
   untouched). Scoped to #about; !important beats the later-loaded
   bundle stylesheet ties.
   ============================================================ */
#about .bg-\[\#fdfbf7\] { background-color: #0d1524 !important; }
#about .hover\:bg-\[\#fcfaf5\]:hover { background-color: #111a2c !important; }
#about .border-neutral-200,
#about .border-neutral-100 { border-color: rgba(227, 222, 207, 0.16) !important; }

/* ── text: cream on dark ── */
#about .text-neutral-700,
#about .text-neutral-800,
#about .text-neutral-600,
#about .text-neutral-500,
#about .prose-neutral { color: #e3decf !important; }
#about .text-neutral-400 { color: rgba(227, 222, 207, 0.55) !important; }
#about .text-black { color: #e3decf !important; }

/* ── cover = THE USER'S IMAGE (about/cover-dark.png) — not a CSS redraw ── */
#about .group > .bg-cover {
  background-image: url("/about/cover-dark.png") !important;
  background-size: 100% 100% !important;
  background-position: center !important;
}
#about .group > .bg-gradient-to-t { display: none !important; }

/* ── cover meta text: HIDDEN — the image already carries the title ── */
#about .group .bottom-4.left-3.right-3 { display: none !important; }
/* spine highlight + spine line: not in the reference image */
#about .group .w-4.bg-gradient-to-r,
#about .group .left-\[12px\] { display: none !important; }

/* ── controls: dark glass ── */
#about .bg-white\/50 {
  background-color: rgba(19, 29, 48, 0.65) !important;
  color: #e3decf !important;
}
#about .hover\:bg-white:hover { background-color: #1a2440 !important; }

/* ── in-page content (certs / placeholders / lists / final) ── */
#about .mv2a-cert { background: #141e33 !important; border-color: rgba(227, 222, 207, 0.16) !important; }
#about .mv2a-cert__title { color: #e3decf !important; }
#about .mv2a-cert__org { color: rgba(227, 222, 207, 0.6) !important; }
#about .mv2a-cert__img { background: #101a2e !important; color: #8b8471 !important; }
#about .mv2a-img { background: #101a2e !important; }
#about .mv2a-img--ph {
  background: linear-gradient(135deg, #16203a, #101a2e) !important;
  color: #8b8471 !important;
}
#about .mv2a-list li::before { background: #a78bfa !important; }
#about .mv2a-block__head { color: #e3decf !important; }
#about .mv2a-block__sub { color: rgba(227, 222, 207, 0.6) !important; }
#about .mv2a-again { background: #16203a !important; color: #e3decf !important; }
#about .mv2a-again:hover { background: #1c2846 !important; }
/* ==== END DARK MODE BOOK ==== */

/* ============================================================
   TASK (user, final responsive pass) — ABOUT BOOK ON PHONES.
   Desktop keeps the two-page spread untouched.

   Why mobile broke: the InteractiveBook component (book-bundle.js)
   sizes its root stage to width*3.5 and writes it INLINE
   (340 * 3.5 = 1190px, fixed). That is room for a closed book plus
   the open two-page spread. On a 390px phone the stage therefore sat
   at x=-400 and ran 400px off BOTH sides — the "one half floating far
   to the right, the other far to the left" the user described.

   The adaptation below makes the phone a ONE-PAGE book, not a shrunk
   two-page one:
     1. The stage is re-sized to a single page (min(100%, 340px)) so it
        always sits inside the viewport. The component's inline width is
        overridden; nothing in the bundle is touched.
     2. The open-state sideways shift (framer animates x -> +170 to make
        room for the facing page) is neutralised: with only one page
        there is nothing to shift toward, so the page stays centred.
     3. Pages and cover turn IN PLACE (pivot moved from the spine/left
        edge to the centre) — a real single-page turn, so the flipping
        page never swings out over the screen edge.
   Cover, flip animation, cover art, dark theme, hint and controls all
   remain the same elements; only the geometry is phone-adapted. */
@media (max-width: 1024px) {
  /* give the host a definite width FIRST (a flex child of .mv2-about);
     `min(100%, …)` directly on the stage would be a percentage inside a
     shrink-to-fit parent — a cyclic dependency that collapses it to 0 */
  #about .mv2a-book-host {
    width: 100%;
    max-width: 340px;
  }
  /* the component's inline stage width (340*3.5) overridden to one page;
     height kept explicit — the book's parts are absolutely positioned, so
     an auto height would collapse the stage to nothing */
  #about .mv2a-book-host > div {
    width: 100% !important;
    height: 520px !important;
  }
  /* the open-state sideways shift (framer x -> +170) — nothing to shift
     toward with a single page, so the page stays centred. Neutralised via
     `transform` (the property framer actually animates here) and NOT via
     `left`: setting `left: 50%` on this node is a position:relative offset
     that slides the whole 340px page 170px OUT of the 340px stage. */
  #about .mv2a-book-host > div > .preserve-3d {
    width: 100% !important;
    transform: none !important;
  }
  /* Pages turn around their OWN LEFT EDGE — the spine of a single page.
     This is the bundle's native geometry and it is the one that reads as a
     natural turn. An earlier attempt moved the pivot to the page centre to
     stop the leaf swinging past the screen edge; that made the leaf sweep
     out over BOTH sides and split visibly down the middle (a "broken centre
     seam"). Reverted here. The stage is one page wide, so a left-edge pivot
     keeps the leaf inside the stage for the whole 0.6s turn. */
  #about .mv2a-book-host .origin-left {
    transform-origin: left center !important;
  }
}
