@media print {
  @page {
    size: letter;
    margin: 0.55in;
  }

  :root {
    --body-padding: 0;
    --card-margin: 28px;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    font-size: 11pt;
    line-height: 1.55;
    background: #f4f5f7 !important;
    color: #334155 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Force light theme for PDF */
  html.dark,
  html.light {
    color-scheme: light;
  }

  html.dark {
    --accent: #2563eb;
    --accent-on: #ffffff;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --body-bg: #f4f5f7;
    --section-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-body: #334155;
    --text-faint: #94a3b8;
    --text-tag: #1e293b;
    --text-timeline: #64748b;
    --border-color: #0f172a14;
    --surface-subtle: #0f172a08;
    --surface-muted: #0f172a05;
    --surface-hover: #0f172a06;
    --pattern-dot: #0f172a12;
    --pattern-stripe: #0f172a08;
    --icon-stroke: #0f172a;
  }

  html.dark .profile-photo--dark,
  html.light .profile-photo--dark {
    opacity: 0 !important;
  }

  html.dark .profile-photo--light,
  html.light .profile-photo--light {
    opacity: 1 !important;
  }

  .app {
    max-width: 100%;
  }

  /* Header: compact static bar */
  .app-header {
    position: static !important;
    height: auto;
    padding: 0 0 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
  }

  .header-left a::after {
    display: none;
  }

  .theme-toggle,
  .hero-button,
  .globe-icon {
    display: none !important;
  }

  /* Show all animated content */
  .fade-in-up,
  .pitch-content .word {
    opacity: 1 !important;
    transform: none !important;
  }

  /* ── Page 1: Hero cover ── */
  .hero {
    min-height: auto !important;
    padding-top: 0 !important;
    display: block !important;
    overflow: visible !important;
    break-after: page;
    page-break-after: always;
  }

  .hero::before {
    display: none;
  }

  .hero-top-1,
  .hero-top-2,
  .hero-bottom-1,
  .hero-bottom-2 {
    display: none;
  }

  .hero-flex-1,
  .hero-flex-2 {
    display: block;
    border: none !important;
    padding: 0 !important;
  }

  .hero-flex-1 {
    text-align: center;
    margin-bottom: 20px;
  }

  .profile-photo-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    animation: none !important;
    box-shadow: none !important;
  }

  .profile-photo-wrap::after {
    display: none;
  }

  .hero-flex-2 {
    gap: 14px !important;
  }

  .hero h1 {
    font-size: 34pt;
    text-align: center;
  }

  .hero .description {
    font-size: 11pt;
    max-width: none;
    text-align: left;
  }

  .banner {
    position: static !important;
    height: auto !important;
    padding: 8px 12px;
    margin-top: 12px;
    white-space: normal;
    line-height: 1.5;
    font-size: 9pt;
  }

  .banner-scroll {
    animation: none !important;
    white-space: normal;
    display: block;
  }

  .metadata {
    text-align: center;
    margin-top: 8px;
  }

  /* Section headers — start a new page for each major block */
  .pitch {
    min-height: auto !important;
    padding: 0 0 16px !important;
    display: block !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  .pitch:not(:first-of-type) {
    break-before: page;
    page-break-before: always;
    padding-top: 0 !important;
  }

  .pitch-content {
    font-size: 18pt;
    text-align: left;
    line-height: 1.2;
  }

  /* Experience / case study / skills blocks */
  .card-stack-section {
    padding: 0;
    margin-bottom: 0;
  }

  .card-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 0;
    border-radius: 12px;
    box-shadow: none;
  }

  .card-item + .card-item {
    break-before: page;
    page-break-before: always;
  }

  .card-item .section-content {
    display: block !important;
    min-height: auto !important;
  }

  .card-item .flex-content {
    padding: var(--card-margin);
    gap: 14px !important;
  }

  .card-item .flex-content.art-side {
    border: none !important;
    border-top: 1px solid var(--border-color) !important;
    min-height: auto !important;
    padding: 20px var(--card-margin) !important;
  }

  .card-item h3 {
    font-size: 20pt;
    margin-bottom: 4px;
  }

  .card-item p {
    font-size: 10.5pt;
  }

  .card-item p span {
    font-size: 9.5pt;
  }

  .card-item ul {
    font-size: 10pt !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
    padding-right: 0 !important;
  }

  .feature-list .tag {
    font-size: 9pt;
    padding: 5px 10px;
  }

  .card-footer {
    padding-top: 14px;
    margin-top: 14px;
  }

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

  .portfolio-link {
    padding: 12px;
  }

  #education {
    break-before: page;
    page-break-before: always;
  }

  #skills h3,
  #education h3 {
    font-size: 20pt;
    margin-bottom: 20px !important;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .skill-card {
    padding: 14px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .skill-card .skill-title {
    font-size: 9pt;
    margin-bottom: 6px;
  }

  .skill-card .skill-items {
    font-size: 9.5pt;
    line-height: 1.5;
  }

  /* Education */
  .timeline-item {
    padding: 14px 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .timeline-date {
    min-width: 72px;
    font-size: 9pt;
  }

  .timeline-content h4 {
    font-size: 11pt;
  }

  .timeline-content .org {
    font-size: 9.5pt;
  }

  .timeline-content p {
    font-size: 9.5pt;
  }

  /* Contact + footer */
  .contact-section {
    break-before: page;
    page-break-before: always;
    padding: 0;
    text-align: left;
  }

  .contact-section h3 {
    font-size: 20pt !important;
    margin-bottom: 16px;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 0;
    justify-content: stretch;
  }

  .contact-item {
    padding: 14px 16px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .footer-section {
    padding: 24px 0 0;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .footer-content {
    flex-direction: row;
    gap: 24px;
  }

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

  a[href^="http"]::after,
  a[href^="mailto"]::after,
  a[href^="tel"]::after {
    content: none;
  }
}
