/* Reference: supplied notebook / collage portfolio. Homepage styling only. */
@font-face {
  font-family:"Portfolio Pixel";
  src:url("assets/fonts/Jersey10-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
.notebook-home {
  --canvas:#faf9f5;
  --surface:#fffefa;
  --ink:#1c1c1a;
  --secondary:#55564f;
  --line:#d9d8cf;
  --blue:#2747c7;
  --note-yellow:#f5cd4a;
  --note-pink:#ed8fb5;
  --note-mint:#a8d5b7;
  --note-lilac:#bbc1e1;
  --note-cream:#eee6d4;
  --note-sky:#dce7f0;
  --tape:#e5cf8da6;
  --frame-line:#b87b68;
  --paper-rule:#25251d0a;
  --paper-shadow:0 7px 30px #29291d14;
  --snapshot-shadow:0 4px 9px #24241b24;
  --note-shadow:2px 5px 0 #3431260b;
  background-color:#e9e8e2;
  background-image:linear-gradient(#ffffff5c 1px,transparent 1px),linear-gradient(90deg,#ffffff5c 1px,transparent 1px);
  background-size:64px 64px;
  padding:24px;
}
.notebook-sheet {
  width:min(1360px,100%);
  margin-inline:auto;
  background-color:var(--canvas);
  background-image:repeating-linear-gradient(transparent 0 27px,var(--paper-rule) 27px 28px);
  border:1px solid var(--line);
  box-shadow:var(--paper-shadow);
}
.notebook-home .portfolio-wrap { width:min(1080px,calc(100% - 96px)); }
.notebook-home .portfolio-header { width:100%; min-height:66px; padding:8px 28px; gap:24px; border-bottom:1px solid var(--line); }
.notebook-home .portfolio-brand { font-size:15px; gap:8px; flex-shrink:0; }
.notebook-home .portfolio-brand>span:not(.brand-stamp) { font-size:11px; }
.notebook-home .brand-stamp { color:var(--ink); background:var(--note-pink); font:23px/26px var(--display); width:26px; height:26px; text-align:center; border-radius:50%; margin-right:3px; }
.notebook-home .portfolio-header nav { gap:4px; margin-right:auto; }
.notebook-home .portfolio-header nav a { min-height:40px; padding:7px 14px; font-size:12px; color:var(--ink); }
.notebook-home .portfolio-header nav .nav-home { background:var(--note-yellow); border:1px solid var(--ink); box-shadow:2px 2px 0 var(--ink); }
.notebook-home .portfolio-header nav a:hover { background:var(--note-cream); }
.notebook-home .header-email { display:inline-flex; justify-content:center; align-items:center; gap:28px; min-height:36px; border:1px solid var(--ink); padding:5px 13px; font-size:12px; }
.notebook-home .header-email:hover { background:var(--note-yellow); color:var(--ink); }
.notebook-home .portfolio-intro { padding-block:54px 64px; }
.hero-collage { position:relative; min-height:320px; }
.hero-copy { position:relative; z-index:2; text-align:center; max-width:660px; margin:auto; }
.notebook-home .hero-copy>* { animation:none; }
.notebook-home .intro-eyebrow { font-size:13px; letter-spacing:.01em; color:var(--ink); }
.intro-eyebrow>span { margin-left:8px; font-family:"Bradley Hand","Comic Sans MS",cursive; font-size:17px; }
.notebook-home .portfolio-intro h1 { margin:18px auto 0; line-height:1; letter-spacing:0; }
.hero-nameplate { display:inline-block; position:relative; padding:10px 24px 15px; border:1px solid var(--frame-line); transform:none; font:400 clamp(124px,16vw,212px)/.82 "Portfolio Pixel",Impact,sans-serif; font-synthesis:none; letter-spacing:.005em; white-space:nowrap; }
.name-handle { position:absolute; width:5px; height:5px; background:var(--frame-line); border:1px solid var(--canvas); }
.handle-tl { top:-3px; left:-3px; }
.handle-tr { top:-3px; right:-3px; }
.handle-bl { bottom:-3px; left:-3px; }
.handle-br { bottom:-3px; right:-3px; }
.hero-labels { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:16px; margin-top:12px; }
.hero-labels>span { display:inline-block; padding:5px 12px; background:var(--note-yellow); font-size:12px; color:var(--ink); transform:rotate(-2deg); box-shadow:var(--note-shadow); }
.hero-labels>span+span { background:var(--note-mint); transform:rotate(2deg); font:12px/1.75 "SFMono-Regular",Consolas,monospace; }
.notebook-home .portfolio-lead { max-width:580px; margin:24px auto 0; color:var(--ink); font-size:17px; line-height:1.8; }
.notebook-home .browse-work { display:inline-flex; align-items:center; gap:9px; margin-top:21px; min-height:44px; padding:6px 14px 6px 7px; font-size:12px; background:var(--ink); color:var(--surface); border:1px solid var(--ink); box-shadow:3px 3px 0 var(--note-lilac); transition:transform 180ms var(--ease),box-shadow 180ms; }
.notebook-home .browse-work .browse-arrow { display:grid; place-items:center; background:var(--note-lilac); color:var(--ink); width:25px; height:25px; font:20px/1 var(--display); }
.notebook-home .browse-work:hover { transform:translate(-1px,-1px); box-shadow:5px 5px 0 var(--note-lilac); }
.hero-snapshot { position:absolute; top:28px; width:150px; padding:9px 9px 5px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--snapshot-shadow); z-index:1; }
.hero-snapshot::before { content:""; position:absolute; top:-10px; left:calc(50% - 25px); width:50px; height:20px; background:var(--tape); transform:rotate(-12deg); z-index:1; }
.hero-snapshot>img { width:100%; height:148px; object-fit:cover; }
.hero-snapshot>figcaption { padding:7px 0 2px; text-align:center; font:15px/1.2 "Bradley Hand","Comic Sans MS",cursive; color:var(--secondary); }
.snapshot-left { left:0; transform:rotate(-8deg); }
.snapshot-right { right:0; top:48px; width:164px; transform:rotate(7deg); }
.snapshot-right>img { height:136px; object-fit:cover; object-position:75% center; }
.snapshot-right::before { transform:rotate(10deg); }
.notebook-home .portfolio-work { padding-bottom:72px; }
.notebook-home .portfolio-section-heading { border-top:0; padding-top:0; margin-bottom:30px; align-items:end; }
.handwritten { margin-bottom:8px; color:var(--secondary); font:17px/1.3 "Bradley Hand","Comic Sans MS",cursive; }
.notebook-home .portfolio-section-heading h2 { display:flex; align-items:baseline; flex-wrap:wrap; gap:16px; line-height:1; }
.notebook-title { display:block; font:400 clamp(45px,6.4vw,80px)/.88 "Portfolio Pixel",Impact,sans-serif; font-synthesis:none; letter-spacing:-.025em; }
.section-chinese { font:500 15px/1.5 var(--body); letter-spacing:0; }
.notebook-home .portfolio-section-heading>.work-count { font-size:12px; font-family:var(--body); padding-bottom:3px; }
.notebook-home .portfolio-grid { gap:42px 32px; }
.notebook-home .portfolio-project { --folder-color:var(--note-cream); --folder-ink:var(--ink); border-radius:0; }
.notebook-home .project-resume { --folder-color:var(--ink); --folder-ink:var(--surface); margin-top:0; }
.notebook-home .project-mofang { --folder-color:var(--note-sky); }
.notebook-home .project-petloo { --folder-color:var(--note-yellow); }
.notebook-home .project-visual { --folder-color:var(--note-lilac); }
.project-tab { display:block; width:55%; min-width:190px; padding:10px 26px 7px 16px; background:var(--folder-color); color:var(--folder-ink); clip-path:polygon(0 0,calc(100% - 28px) 0,100% 100%,0 100%); font:10px/1.4 "SFMono-Regular",Consolas,monospace; letter-spacing:.06em; }
.notebook-home .project-cover { background:var(--folder-color); border-radius:0; padding:14px 16px 18px; aspect-ratio:1.58; border:1px solid var(--folder-color); }
.notebook-home .cover-talent>img,.notebook-home .cover-mofang>img { width:100%; border-radius:0; box-shadow:var(--snapshot-shadow); }
.notebook-home .cover-resume,.notebook-home .cover-petloo { padding:26px 18px; }
.notebook-home .cover-phone-pair { position:relative; height:100%; width:100%; gap:27px; }
.notebook-home .cover-phone-pair>img { height:100%; max-width:42%; border-radius:9px; box-shadow:var(--snapshot-shadow); transform:rotate(-4deg); }
.notebook-home .cover-phone-pair>img+img { height:94%; transform:rotate(4deg); }
.notebook-home .portfolio-project:hover .cover-phone-pair>img { transform:rotate(-2deg) translateY(-3px); }
.notebook-home .portfolio-project:hover .cover-phone-pair>img+img { transform:rotate(2deg) translateY(-3px); }
.notebook-home .project-heading { margin-top:16px; }
.notebook-home .project-heading h3 { font-size:22px; letter-spacing:-.035em; }
.notebook-home .project-arrow { flex-shrink:0; display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--ink); font-size:21px; color:var(--ink); }
.notebook-home .portfolio-project:hover .project-arrow { color:var(--ink); background:var(--note-yellow); }
.notebook-home .project-summary { margin-top:6px; font-size:14px; line-height:1.8; }
.notebook-home .project-role { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }
.role-tag { display:inline-block; padding:3px 9px; font-size:11px; line-height:1.7; background:var(--note-cream); color:var(--ink); }
.role-tag:nth-of-type(2) { background:var(--note-yellow); }
.role-tag:nth-of-type(3) { background:var(--note-mint); }
.role-tag:nth-of-type(4) { background:var(--note-lilac); }
.notebook-home .cover-visual { aspect-ratio:3.1; gap:30px; padding:26px 36px; }
.notebook-home .cover-visual>div { height:95%; background:var(--surface); padding:7px 7px 17px; box-shadow:var(--snapshot-shadow); overflow:visible; position:relative; transform:rotate(-3deg); }
.notebook-home .cover-visual>div::before { content:""; position:absolute; top:-8px; left:calc(50% - 23px); width:46px; height:16px; background:var(--tape); transform:rotate(-7deg); z-index:1; }
.notebook-home .cover-visual>.visual-campaign { height:85%; transform:rotate(3deg); }
.notebook-home .cover-visual>.visual-character { height:78%; transform:rotate(-2deg); }
.notebook-home .cover-visual img { width:100%; height:100%; object-fit:contain; }
.notebook-home .portfolio-about { padding-top:30px; padding-bottom:64px; }
.notebook-home .about-heading { padding-top:36px; border-top:1px solid var(--line); margin-bottom:36px; }
.notebook-home .about-columns { grid-template-columns:1.2fr 1fr; gap:72px; align-items:start; }
.notebook-home .about-background>p { padding:22px 24px; border:1px solid var(--note-yellow); background:var(--surface); transform:rotate(-.5deg); color:var(--ink); font-size:15px; line-height:1.9; box-shadow:var(--note-shadow); }
.notebook-home .portfolio-experience { margin-top:26px; }
.notebook-home .portfolio-experience>div { grid-template-columns:76px 1fr; font-size:13px; }
.notebook-home .portfolio-experience dt { align-self:start; padding:2px 8px; background:var(--note-yellow); font-size:12px; width:fit-content; }
.notebook-home .portfolio-experience>div+div dt { background:var(--note-mint); }
.notebook-home .portfolio-contact { position:relative; padding:26px 24px 24px; background:var(--note-yellow); box-shadow:var(--snapshot-shadow); transform:rotate(1deg); margin-top:0; }
.notebook-home .portfolio-contact::before { content:""; width:72px; height:22px; position:absolute; top:-12px; left:calc(50% - 36px); background:var(--tape); transform:rotate(-5deg); }
.contact-note { display:block; font:25px/1.2 "Bradley Hand","Comic Sans MS",cursive; color:var(--ink); margin-bottom:16px; }
.notebook-home .portfolio-contact>p { color:var(--ink); font-size:14px; }
.notebook-home .contact-email { color:var(--ink); font-size:clamp(19px,2.1vw,27px); margin-top:14px; }
.notebook-home .contact-email:hover { color:var(--blue); }
.notebook-home .portfolio-contact .text-link { margin-top:22px; border:1px solid var(--ink); padding:7px 12px; font-size:12px; background:var(--ink); color:var(--surface); }
.notebook-home .portfolio-contact .text-link:hover:not(:disabled) { background:var(--surface); color:var(--ink); }
.notebook-home .portfolio-contact .text-link:disabled { min-height:44px; }
.notebook-home .portfolio-contact .text-link:disabled>span { transform:none; }
.notebook-home .portfolio-contact>small { color:var(--ink); font-size:11px; }
.contact-elsewhere { margin-top:20px; padding-top:12px; border-top:1px solid var(--ink); }
.contact-site { display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px; min-height:44px; font-size:13px; }
.contact-site>span:first-of-type { font-family:var(--display); border-bottom:1px solid currentColor; }
.contact-site:hover { color:var(--blue); }
.contact-elsewhere>p { color:var(--secondary); font-size:12px; }
.notebook-home .portfolio-footer { font-size:11px; padding-block:15px; }
@media(max-width:1100px) {
  .notebook-home .portfolio-brand>span:not(.brand-stamp) { display:none; }
  .hero-snapshot { width:126px; top:25px; }
  .hero-snapshot>img { height:126px; }
  .snapshot-right { width:136px; top:40px; }
  .snapshot-right>img { height:115px; }
  .hero-copy { max-width:560px; }
  .notebook-home .portfolio-lead { font-size:16px; max-width:480px; }
  .notebook-home .about-columns { gap:40px; }
  .notebook-home .cover-visual { padding:24px 28px; gap:22px; }
}
@media(max-width:820px) {
  .notebook-home { padding:16px; }
  .notebook-home .portfolio-wrap { width:calc(100% - 56px); }
  .notebook-home .portfolio-header { width:100%; padding-inline:20px; gap:16px; }
  .notebook-home .portfolio-header nav a { padding-inline:10px; }
  .hero-snapshot { display:none; }
  .hero-collage { min-height:0; }
  .notebook-home .portfolio-intro { padding-block:42px 52px; }
  .hero-nameplate { font-size:clamp(108px,18vw,166px); }
  .notebook-home .portfolio-grid { gap:32px 22px; }
  .notebook-home .project-cover { padding:12px; }
  .notebook-home .cover-resume,.notebook-home .cover-petloo { padding:22px 14px; }
  .notebook-home .project-heading h3 { font-size:20px; }
  .notebook-home .project-summary { font-size:13px; }
  .notebook-home .about-columns { gap:28px; }
  .notebook-home .contact-email { font-size:20px; }
  .notebook-home .portfolio-contact { padding:24px 18px; }
}
@media(max-width:640px) {
  .notebook-home { padding:10px; background-size:40px 40px; }
  .notebook-home .portfolio-wrap { width:calc(100% - 36px); }
  .notebook-home .portfolio-header { width:100%; padding:8px 12px; min-height:60px; gap:10px; }
  .notebook-home .portfolio-brand { font-size:13px; gap:5px; }
  .notebook-home .brand-stamp { display:block; width:20px; height:20px; font-size:19px; line-height:20px; margin-right:0; }
  .notebook-home .portfolio-header nav { margin-left:auto; margin-right:0; gap:1px; }
  .notebook-home .portfolio-header nav a { padding:6px 8px; font-size:11px; min-height:38px; white-space:nowrap; }
  .notebook-home .header-email { display:none; }
  .notebook-home .portfolio-intro { padding-block:36px 44px; }
  .notebook-home .intro-eyebrow { font-size:12px; }
  .intro-eyebrow>span { font-size:15px; }
  .notebook-home .portfolio-intro h1 { margin-top:17px; }
  .hero-nameplate { padding:8px 12px 12px; font-size:clamp(80px,27vw,144px); }
  .hero-labels { gap:9px; margin-top:12px; }
  .hero-labels>span { font-size:10px; padding:4px 9px; }
  .hero-labels>span+span { font-size:10px; }
  .notebook-home .portfolio-lead { font-size:14px; margin-top:24px; line-height:1.9; }
  .notebook-home .browse-work { margin-top:18px; font-size:11px; gap:7px; }
  .notebook-home .portfolio-section-heading { gap:12px; margin-bottom:24px; }
  .handwritten { font-size:14px; margin-bottom:8px; }
  .notebook-home .portfolio-section-heading h2 { gap:9px; }
  .notebook-title { font-size:clamp(38px,10vw,61px); }
  .section-chinese { font-size:12px; }
  .notebook-home .portfolio-section-heading>.work-count { display:none; }
  .notebook-home .portfolio-grid { gap:32px; }
  .project-tab { width:62%; min-width:175px; font-size:9px; padding:9px 24px 6px 12px; }
  .notebook-home .project-cover { aspect-ratio:1.5; padding:12px; }
  .notebook-home .cover-resume,.notebook-home .cover-petloo { padding:22px 16px; }
  .notebook-home .project-heading { margin-top:13px; }
  .notebook-home .project-heading h3 { font-size:21px; }
  .notebook-home .project-summary { font-size:14px; }
  .notebook-home .project-role { gap:5px; margin-top:10px; }
  .role-tag { font-size:10px; padding:3px 8px; }
  .notebook-home .cover-visual { grid-template-columns:1fr 1.25fr; grid-template-rows:minmax(0,1fr) minmax(0,1fr); gap:16px; padding:22px; }
  .notebook-home .cover-visual>div { padding:5px 5px 10px; height:100%; }
  .notebook-home .cover-visual>.visual-campaign,.notebook-home .cover-visual>.visual-character { height:100%; }
  .notebook-home .cover-visual>div::before { width:32px; height:13px; left:calc(50% - 16px); top:-6px; }
  .notebook-home .portfolio-work { padding-bottom:40px; }
  .notebook-home .portfolio-about { padding-top:8px; padding-bottom:40px; }
  .notebook-home .about-heading { padding-top:28px; margin-bottom:28px; }
  .notebook-home .about-columns { grid-template-columns:minmax(0,1fr); gap:36px; }
  .notebook-home .about-background>p { padding:18px; font-size:14px; }
  .notebook-home .portfolio-contact { padding:25px 22px; border:0; }
  .notebook-home .contact-email { font-size:23px; }
  .notebook-home .portfolio-footer { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .notebook-home *, .notebook-home *::before { transition:none!important; animation:none!important; }
}
@media print {
  .notebook-home { padding:0; background:var(--surface); }
  .notebook-sheet { border:0; box-shadow:none; background:var(--surface); }
  .notebook-home .portfolio-wrap { width:100%; }
  .notebook-home .portfolio-intro { padding-block:20px 36px; }
  .hero-snapshot,.notebook-home .header-email,.notebook-home .browse-work { display:none; }
  .hero-nameplate,.notebook-home .portfolio-contact,.notebook-home .about-background>p { transform:none; }
  .notebook-home .portfolio-grid { gap:28px 24px; }
  .role-tag,.project-tab,.notebook-home .portfolio-contact { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}

/* Show the full paired notebook illustrations inside the existing taped photos. */
.hero-snapshot>img,.snapshot-right>img { height:auto; aspect-ratio:1; object-fit:contain; object-position:center; }
