@charset "UTF-8";
:root {
  --paper: oklch(96.3% .014 88);
  --paper-deep: oklch(92.9% .022 87);
  --ink: oklch(23% .035 250);
  --muted: oklch(45% .025 250);
  --orange: oklch(67% .17 42);
  --yellow: oklch(89% .115 86);
  --rule: oklch(49% .024 250 / .65);
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --hand: 'Kalam', cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --page-gutter: max(60px, calc((100vw - 1200px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; background: url('assets/paper.svg'); opacity: .22; pointer-events: none; z-index: 20; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button, [href] { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.07; }
p { max-width: 70ch; }
ul { padding: 0; margin: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; left: 16px; top: -90px; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { width: 100%; min-height: 88px; padding: 0; display: flex; align-items: center; position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; }
.header-inner { position: relative; width: 100%; min-height: inherit; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 5.2vw; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 var(--yellow); }
.site-header.is-scrolled { background: var(--paper); border-bottom-color: oklch(49% .024 250 / .25); box-shadow: 0 5px 18px oklch(23% .035 250 / .07); }
.js .site-header.is-hidden:not(:has(:focus-visible)) { transform: translateY(calc(-100% - 20px)); }
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: transform .26s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
}
.wordmark { flex-shrink: 0; font-family: 'Knewave', var(--hand); font-weight: 400; font-size: 25px; letter-spacing: -.04em; text-decoration: none; line-height: 1.3; padding-block: 6px; }
.wordmark-dot { color: var(--orange); }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; position: relative; isolation: isolate; padding: 10px 15px; white-space: nowrap; }
.site-header nav a::after { content: ''; position: absolute; z-index: -1; left: 8px; right: 8px; top: 48%; height: 12px; background: var(--yellow); clip-path: polygon(2% 10%, 100% 0, 97% 90%, 0 100%); transform: scaleX(0) rotate(-3deg); transform-origin: left; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .site-header nav a[aria-current]::after { transform: scaleX(1) rotate(-3deg); }
.site-header nav .nav-contact { margin-left: 12px; padding-inline: 18px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px 4px 2px 3px; }
.site-header nav .nav-contact::after { content: none; }
.site-header nav .nav-contact:hover, .site-header nav .nav-contact:focus-visible, .site-header nav .nav-contact[aria-current] { color: var(--ink); background: var(--yellow); }
.nav-contact > span { font-size: 20px; line-height: 1; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 0; background: none; padding: 10px; font-size: 14px; font-weight: 700; }
.menu-lines { position: relative; width: 20px; height: 16px; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); top: 4px; }
.menu-lines::after { top: 11px; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-3.5px) rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .site-header nav a::after, .menu-lines::before, .menu-lines::after { transition: transform .2s var(--ease); }
  .nav-contact { transition: background-color .2s var(--ease), color .2s var(--ease); }
}
.hero-socials { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.hero-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.3px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; }
.hero-socials a:hover, .hero-socials a:focus-visible { background: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .hero-socials { animation: opening-copy .7s var(--ease) 330ms both; }
  .hero-socials a { transition: background-color .2s var(--ease), transform .2s var(--ease); }
}
.story { width: 100%; position: relative; isolation: isolate; overflow: clip; }
.story-thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.story-thread path { fill: none; stroke: var(--orange); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.thread-ghost { opacity: .12; }
.thread-ink { opacity: .95; }
.hero { position: relative; min-height: 640px; display: grid; grid-template-columns: 56% 44%; padding: 44px var(--page-gutter) 58px; align-items: center; }
.hero-copy { z-index: 4; position: relative; }
.eyebrow { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; vertical-align: 1px; margin-right: 7px; }
h1 { font-size: clamp(54px, 6.2vw, 88px); font-weight: 900; letter-spacing: -.065em; line-height: 1.035; max-width: 770px; }
.highlight { position: relative; z-index: 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.highlight::before { content: ''; position: absolute; z-index: -1; inset: auto -.07em .045em -.04em; height: .42em; background: var(--yellow); opacity: .82; transform: rotate(-1.1deg); clip-path: polygon(0 12%, 8% 7%, 8% 0, 74% 7%, 96% 0, 100% 16%, 97% 45%, 100% 66%, 94% 74%, 95% 100%, 22% 93%, 1% 100%, 3% 56%); }
.hero h1 .highlight::after { content: ''; position: absolute; left: 0; right: -4px; bottom: -.055em; height: 2px; background: var(--orange); transform: rotate(-.8deg); }
.orange-period { color: var(--orange); }
.hero-roles { font-size: 15px; margin-top: 27px; max-width: 550px; line-height: 1.7; font-weight: 500; }
.hero-roles span { margin: 0 3px; color: var(--muted); }
.hero-roles a { text-decoration-color: var(--orange); }
.availability { font-size: 14px; color: var(--muted); margin-top: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-size: 13px; line-height: 1.4; font-weight: 600; min-height: 45px; padding: 13px 19px; text-decoration: none; border: 1px solid var(--ink); border-radius: 1px; transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease); position: relative; }
.button:active { transform: scale(.97); box-shadow: none; }
.button-ink { background: var(--ink); color: var(--paper); }
.button-outline { background: var(--paper); }
.button-outline:hover { background: var(--yellow); }
.button .icon { width: 16px; height: 16px; }
.scroll-cue { display: inline-flex; gap: 10px; align-items: center; margin-top: 43px; font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: .03em; }
.scroll-line { width: 33px; height: 1px; background: var(--muted); }
.hero-art { position: absolute; right: 0; width: min(61%, 1060px); top: 0; bottom: -7px; pointer-events: none; z-index: 3; }
.desk-illustration { position: absolute; right: -12px; bottom: 6px; width: 106%; max-width: none; }
.handwritten { font-family: var(--hand); font-weight: 400; line-height: 1.35; letter-spacing: -.015em; }
.hero-note { position: absolute; left: 37%; top: 12%; transform: rotate(-8deg); font-size: 19px; width: 160px; }
.hero-note svg { display: block; width: 75px; height: 58px; margin-left: 70px; fill: none; stroke: var(--orange); stroke-width: 2; }
.wall-note { position: absolute; right: 4.5%; top: 28%; font-size: 17px; line-height: 1.45; transform: rotate(-10deg); }
.wall-note span { font-size: 12px; }
.ink-spark { font-size: 45px; color: var(--orange); font-family: var(--hand); line-height: 1; }
.spark-one { position: absolute; right: 19%; top: 38%; transform: rotate(10deg); }
.chapter { position: relative; padding: 65px var(--page-gutter); }
.chapter::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--ink); transform: rotate(-1deg); transform-origin: center; z-index: 3; }
.chapter:nth-of-type(odd)::before { transform: rotate(.8deg); }
.chapter-inner { position: relative; z-index: 3; }
.chapter-heading { position: relative; padding-top: 40px; }
.chapter-number { position: absolute; top: -12px; left: 0; font-size: 58px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -.075em; z-index: 1; }
.chapter-number::before { content: ''; position: absolute; inset: 28px -14px 4px -8px; background: var(--yellow); opacity: .82; z-index: -1; transform: rotate(-5deg); clip-path: polygon(0 10%, 95% 0, 100% 30%, 94% 60%, 98% 90%, 0 100%); }
.chapter-number span { font-size: 40px; font-weight: 500; margin-left: 7px; }
h2 { font-size: clamp(36px, 4vw, 55px); font-weight: 900; letter-spacing: -.06em; }
.section-intro { font-size: 16px; color: var(--muted); margin-top: 16px; }
/* An asymmetric manga spread joins the person, the product, and the next step. */
.about-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.about-margin-note { font-size: 20px; transform: rotate(5deg); padding-right: 28px; }
.about-margin-note span { color: var(--orange); font-size: 30px; }
.about-spread { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 14px; margin-top: 28px; }
.bio-panel { position: relative; border: 2px solid var(--ink); background: var(--paper); }
.panel-caption { font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.origin-panel { grid-row: span 2; transform: rotate(-.8deg); display: flex; flex-direction: column; }
.origin-art { min-height: 240px; flex: 1; position: relative; overflow: hidden; background: radial-gradient(oklch(23% .035 250 / .18) .65px, transparent .9px) 0 0 / 5px 5px, var(--paper-deep); border-bottom: 2px solid var(--ink); }
.origin-art img { position: absolute; width: 118%; max-width: none; right: -4%; bottom: -9%; }
.thought-bubble { position: relative; z-index: 1; display: inline-block; margin: 15px 0 0 15px; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 17px; line-height: 1.2; transform: rotate(-6deg); }
.thought-bubble::after { content: ''; position: absolute; width: 11px; height: 11px; right: 15px; bottom: -5px; background: var(--paper); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(35deg); }
.origin-location { position: absolute; right: 10px; bottom: 10px; background: var(--paper); border: 1px solid var(--ink); padding: 3px 8px; font-size: 10px; }
.origin-location .icon { width: 12px; height: 12px; }
.origin-caption { padding: 20px 23px; }
.origin-caption h3 { font-size: 23px; letter-spacing: -.045em; margin-bottom: 10px; }
.origin-caption > p:not(.panel-caption) { font-size: 14px; color: var(--muted); }
.origin-caption .small-link { font-size: 12px; margin-top: 14px; }
.founder-panel { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 22px; padding: 26px 28px; box-shadow: 4px 4px 0 var(--ink); }
.founder-copy h3 { font-size: clamp(30px, 3vw, 43px); letter-spacing: -.055em; line-height: 1.02; margin-bottom: 16px; }
.founder-copy > p:not(.panel-caption) { font-size: 14px; max-width: 36ch; color: var(--muted); }
.founder-copy .text-link { margin-top: 22px; font-size: 13px; }
.founder-art { text-align: center; transform: rotate(5deg); }
.founder-art .handwritten { display: block; font-size: 17px; }
.founder-art svg { display: block; width: 100%; margin: 14px 0; }
.founder-stamp { display: inline-block; border: 1px solid var(--ink); background: var(--yellow); font-size: 11px; font-weight: 800; padding: 4px 13px; transform: rotate(-9deg); }
.freelance-story { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 23px 28px; }
.freelance-story .panel-caption { margin-bottom: 8px; }
.freelance-story h3 { font-size: 25px; letter-spacing: -.045em; margin-bottom: 9px; }
.freelance-story p:not(.panel-caption) { font-size: 14px; color: var(--muted); max-width: 38ch; }
.freelance-story .text-link { font-size: 12px; flex-shrink: 0; }

@media (min-width: 761px) and (max-width: 1000px) {
  .about-spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .founder-panel { grid-template-columns: minmax(0, 1fr) 100px; padding: 23px; gap: 14px; }
  .freelance-story { display: block; padding: 23px; }
  .freelance-story .text-link { margin-top: 15px; }
}
@media (max-width: 760px) {
  .about-margin-note { font-size: 15px; padding-right: 0; }
  .about-margin-note span { display: none; }
  .about-spread { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 25px; }
  .origin-panel { grid-row: auto; transform: none; }
  .origin-art { min-height: 260px; }
  .origin-art img { width: min(110%, 500px); right: 0; bottom: -12%; }
  .thought-bubble { margin: 20px; }
  .origin-caption { padding: 22px; }
  .founder-panel { padding: 24px 22px; grid-template-columns: minmax(0, 1fr) 100px; gap: 16px; }
  .founder-art .handwritten { font-size: 14px; }
  .founder-copy h3 { font-size: 34px; }
  .freelance-story { display: block; padding: 24px 22px; }
  .freelance-story .text-link { margin-top: 17px; }

}
@media (max-width: 450px) {
  .about-heading-row { display: block; }
  .about-margin-note { margin-top: 14px; transform: none; font-size: 17px; }
  .about-margin-note br { display: none; }
  .founder-panel { grid-template-columns: minmax(0, 1fr) 85px; gap: 12px; padding: 24px 18px; }
  .founder-copy h3 { font-size: 31px; }
  .founder-stamp { font-size: 10px; padding: 4px 9px; }
}
.small-link { display: inline-block; font-size: 11px; margin-top: 20px; text-decoration: none; border-bottom: 1px solid transparent; }
.small-link:hover { border-color: var(--orange); }
.small-link span { color: var(--orange); margin-left: 6px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; }
.section-caption { margin-top: 13px; color: var(--muted); font-size: 19px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-weight: 700; font-size: 14px; text-decoration: none; position: relative; padding-bottom: 8px; }
.text-link::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.5px; background: var(--orange); transform: rotate(-1deg); transition: transform .25s var(--ease); transform-origin: left; }
.text-link:hover::after { transform: rotate(0) scaleX(.7); }
.section-heading-row > .text-link { margin-bottom: 9px; flex-shrink: 0; }
.contact-chapter { padding-top: 75px; padding-bottom: 40px; }
.manga-reader #contact { min-height: auto; padding-block: 64px 48px; }
.contact-layout { display: grid; grid-template-columns: 65% 35%; align-items: center; }
.contact-copy { position: relative; z-index: 3; }
.contact-copy h2 { font-size: clamp(40px, 4.8vw, 66px); }
.contact-copy .actions { gap: 9px; }
.email-copy { border: 0; background: none; padding: 0; font-size: 12px; color: var(--muted); margin-top: 22px; text-align: left; }
.email-copy span { display: inline-block; font-size: 10px; margin-left: 13px; text-decoration: underline; text-decoration-color: var(--orange); }
.copy-status { font-size: 11px; color: var(--muted); min-height: 17px; margin-top: 5px; }
.farewell-art { min-height: 370px; position: relative; margin-right: calc(-.5 * var(--page-gutter)); }
.farewell-art > img { width: 280px; position: absolute; right: 24px; bottom: 35px; }
.farewell-note { position: absolute; top: 0; right: 2px; z-index: 1; font-size: 17px; transform: rotate(8deg); }
.signature { position: absolute; right: 5px; bottom: 2px; font-size: 37px; color: var(--orange); transform: rotate(-9deg); }
.signature svg { position: absolute; left: 0; bottom: -8px; width: 190px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-footer { max-width: 1320px; margin: auto; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 25px 60px; font-size: 10px; border-top: 1px solid oklch(70% .01 250 / .3); }
.site-footer .handwritten { font-size: 13px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.mobile-break { display: none; }
.media-dialog { border: 1px solid var(--rule); padding: 20px; background: var(--paper); color: var(--ink); width: min(1080px, 94vw); max-height: 92vh; }
.media-dialog::backdrop { background: oklch(18% .03 250 / .85); }
.media-dialog-header { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.media-dialog h2 { font-size: 23px; letter-spacing: -.04em; }
.dialog-close { border: 1px solid var(--rule); background: none; padding: 8px; display: flex; }
#media-content video, #media-content img { width: 100%; max-height: 75vh; object-fit: contain; display: block; background: var(--ink); }
body.dialog-open { overflow: hidden; }
.highlight::before { transform-origin: left center; transition: scale .6s var(--ease) .1s; }
[data-parallax] { translate: 0 var(--parallax-shift, 0px); }

@keyframes opening-copy {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes opening-art {
  from { opacity: 0; translate: 30px 16px; scale: .985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes greeting-enter {
  from { opacity: 0; translate: 0 18px; transform: rotate(3deg); }
  to { opacity: 1; translate: 0 0; transform: rotate(0); }
}
@keyframes marker-stroke {
  from { scale: 0 1; }
  to { scale: 1 1; }
}
@keyframes drawn-note {
  from { stroke-dashoffset: 190; }
  to { stroke-dashoffset: 0; }
}
@keyframes media-enter {
  from { opacity: 0; translate: 0 8px; scale: .98; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: opening-copy .7s var(--ease) both; }
  .hero-copy .eyebrow { animation-delay: 40ms; }
  .hero-copy h1 { animation: none; }
  .greeting-word { display: inline-block; animation: greeting-enter .65s var(--ease) 80ms both; }
  .greeting-word:nth-child(2) { animation-delay: 150ms; }
  .greeting-word:nth-child(3) { animation-delay: 220ms; }
  .hero-copy .hero-roles { animation-delay: 190ms; }
  .hero-copy .availability { animation-delay: 240ms; }
  .hero-copy .hero-socials { animation-delay: 300ms; }
  .hero-copy .actions { animation-delay: 360ms; }
  .hero-copy .scroll-cue { animation-delay: 370ms; }
  .hero-art { animation: opening-art 1s var(--ease) 120ms both; }
  .hero h1 .highlight::before, .hero h1 .highlight::after { animation: marker-stroke .65s var(--ease) 340ms both; transform-origin: left center; }
  .hero-note svg path { stroke-dasharray: 190; animation: drawn-note .8s var(--ease) 700ms both; }
  .media-dialog[open] { animation: media-enter .2s var(--ease); }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover .icon, .text-link:hover .icon { translate: 3px 0; }
  .button .icon, .text-link .icon { transition: translate .2s var(--ease); }
}

/* The project archive shares the same paper, ink, and chapter language. */
.archive-main { --project-brush: 'Knewave', var(--hand); --project-mono: 'Consolas', 'Courier New', monospace; max-width: 1680px; margin: auto; padding: 24px 5.2vw 80px; min-height: 75vh; }
.breadcrumb { font: 17px/1.4 var(--hand); display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 14px; text-decoration-color: var(--orange); }
.archive-header { display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.archive-header h1 { font: 400 clamp(54px, 5.3vw, 84px)/1.2 var(--project-brush); letter-spacing: -.04em; rotate: -2deg; transform-origin: left center; }
.archive-main .highlight::before { height: .32em; bottom: -.015em; opacity: 1; }
.archive-intro { max-width: 70ch; font-size: 15px; margin-top: 18px; color: var(--muted); }
.archive-note { position: relative; flex-shrink: 0; font-size: 22px; rotate: 5deg; margin-right: 3%; padding-bottom: 30px; }
.archive-note svg { position: absolute; width: 100px; height: 46px; top: 100%; left: 15px; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.archive-controls { display: flex; align-items: center; gap: 9px 17px; flex-wrap: wrap; margin-top: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.filter-button { position: relative; isolation: isolate; min-height: 44px; border: 0; background: none; padding: 8px 13px; font: 700 18px/1.4 var(--hand); }
.filter-button::before { content: ''; position: absolute; inset: 10px 0 6px; z-index: -1; background: var(--yellow); clip-path: polygon(0 20%, 96% 0, 100% 80%, 4% 100%); opacity: 0; transition: opacity .2s var(--ease); rotate: -2deg; }
.filter-button[aria-pressed="true"]::before { opacity: 1; }
.filter-button:hover::before { opacity: .6; }
.filter-button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.project-count { font: 12px/1.5 var(--project-mono); color: var(--muted); margin-left: auto; }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px 5.5%; margin-top: 26px; align-items: start; }
.archive-project { min-width: 0; position: relative; }
.project-source-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: 700 17px/1.4 var(--hand); text-decoration-color: var(--orange); text-underline-offset: 5px; }
#work .project-source-link { position: absolute; z-index: 2; right: 4px; bottom: 12px; padding-inline: 8px; background: var(--paper); }
.archive-project > .project-source-link { position: absolute; right: 10px; bottom: 0; padding-inline: 8px; background: var(--paper); }
.project-source-links { position: absolute; right: 5px; bottom: 0; display: flex; gap: 18px; }
#work .project-source-links { bottom: 8px; }
#work .project-source-links .project-source-link { position: static; padding-inline: 0; }
#work .project-panel:has(.project-source-links) .project-copy { padding-bottom: 64px; }
.archive-project:has(.project-source-links) .archive-copy { padding-bottom: 44px; }
.archive-project:nth-child(even) { padding-top: 32px; }
.archive-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.archive-visual { position: relative; width: 100%; aspect-ratio: 1.8; rotate: -.7deg; isolation: isolate; transition: transform .3s var(--ease); }
.archive-project:nth-child(even) .archive-visual { rotate: .7deg; }
.archive-visual::after { content: ''; position: absolute; inset: 0; background: var(--ink); mask: url('assets/project-frame.svg') center / 100% 100% no-repeat; pointer-events: none; }
.archive-number { position: absolute; top: 5%; left: 4%; z-index: 1; font: 400 24px/1.3 var(--project-brush); padding: 2px 9px; background: var(--paper); rotate: -5deg; }
.archive-pick { position: absolute; right: 5%; bottom: 1%; z-index: 1; font-size: 20px; background: var(--yellow); padding: 3px 12px; rotate: -5deg; }
.archive-copy { padding: 14px 10px 0; }
.archive-copy .archive-meta { font: 11px/1.5 var(--project-mono); text-transform: uppercase; margin-bottom: 8px; }
.archive-project h2 { font: 400 clamp(27px, 2.7vw, 42px)/1.25 var(--project-brush); letter-spacing: -.035em; margin-bottom: 13px; text-wrap: balance; }
.archive-copy > p:not(.archive-meta) { font: 13px/1.75 var(--project-mono); max-width: 56ch; }
.archive-tags { display: flex; gap: 6px 10px; flex-wrap: wrap; margin-top: 15px; }
.archive-tags span { font: 11px/1.5 var(--project-mono); padding: 3px 8px; background: oklch(84.5% .008 88 / .65); clip-path: polygon(0 25%, 18% 8%, 48% 0, 100% 15%, 97% 50%, 100% 85%, 62% 100%, 25% 93%, 0 100%, 4% 55%); }
.archive-open { display: inline-flex; align-items: center; gap: 26px; align-self: flex-start; min-height: 44px; margin-top: 9px; font: 700 20px/1.4 var(--hand); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.archive-open > span { transition: transform .25s var(--ease); }
.archive-link:hover .archive-open > span { transform: translateX(5px); }
.archive-link:focus-visible { outline-offset: 8px; }
.archive-bottom { display: flex; justify-content: space-between; gap: 25px; align-items: center; margin-top: 70px; padding-top: 35px; border-top: 2px solid var(--ink); }
.archive-bottom .handwritten { font-size: 21px; margin-bottom: 12px; }
.archive-bottom h2 { font: 400 clamp(36px, 4vw, 58px)/1.25 var(--project-brush); letter-spacing: -.03em; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .archive-link:hover .archive-visual { transform: translateY(-5px); }
}
[hidden] { display: none !important; }

@media (min-width: 1441px) {
  h1 { font-size: 88px; }
  .hero { min-height: 690px; padding-top: 50px; }
}
@media (max-width: 1100px) {
  :root { --page-gutter: 38px; }
  .header-inner { padding-inline: 24px; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding-inline: 10px; }
  .site-header nav .nav-contact { margin-left: 6px; padding-inline: 14px; }
  .hero { padding: 40px 38px 48px; min-height: 610px; }
  .hero-art { width: 62%; }
  h1 { font-size: clamp(59px, 6.5vw, 75px); }
  .hero-note { top: 9%; left: 41%; font-size: 17px; }
  .wall-note { right: 5%; font-size: 14px; top: 34%; }
  .spark-one { right: 17%; top: 41%; }
  .hero-roles { max-width: 430px; font-size: 13px; }
  .chapter { padding-left: 38px; padding-right: 38px; }
  .farewell-art > img { width: 250px; right: 0; }
  .contact-copy .button { padding: 12px 14px; gap: 7px; }
  .site-footer { padding: 25px 38px; }
  .archive-main { padding: 40px 38px 70px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 24px; }
  html { scroll-padding-top: 15px; }
  .site-header { min-height: 72px; }
  .header-inner { padding: 8px 20px; gap: 12px; }
  .wordmark { font-size: 23px; }
  .menu-toggle { display: flex; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 var(--yellow); flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { justify-content: flex-start; padding: 12px 16px; font-size: 17px; }
  .site-header nav a::after { right: auto; width: 90px; }
  .site-header nav .nav-contact { margin: 6px 0 0; justify-content: space-between; padding: 12px 16px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 24px 24px 0; min-height: auto; }
  .eyebrow { font-size: 9px; margin-bottom: 19px; letter-spacing: .08em; }
  h1 { font-size: clamp(50px, 8.8vw, 68px); max-width: 600px; line-height: 1.05; }
  .desktop-break { display: none; }
  .hero-roles { max-width: 510px; margin-top: 24px; font-size: 13px; }
  .availability { font-size: 12px; margin-top: 4px; }
  .hero .actions { gap: 10px; margin-top: 24px; }
  .button { font-size: 12px; padding: 12px 15px; min-height: 45px; }
  .scroll-cue { margin-top: 25px; font-size: 10px; }
  .hero-art { position: relative; width: calc(100% + 48px); height: clamp(260px, 57vw, 420px); margin-left: -24px; top: auto; bottom: auto; margin-top: -8px; }
  .desk-illustration { width: 92%; right: 0; bottom: -5px; }
  .hero-note { left: 9%; top: 16%; width: 120px; font-size: 16px; transform: rotate(-7deg); }
  .hero-note svg { width: 60px; height: 44px; margin-left: 25px; }
  .wall-note { font-size: 13px; top: 24%; right: 4%; }
  .wall-note span { font-size: 9px; }
  .spark-one { font-size: 30px; top: 31%; right: 22%; }
  .chapter { padding: 54px 24px 45px; }
  .chapter-heading { padding-top: 34px; }
  .chapter-number { font-size: 48px; top: -9px; }
  .chapter-number::before { top: 23px; }
  .chapter-number span { font-size: 31px; }
  h2 { font-size: clamp(33px, 6.4vw, 43px); letter-spacing: -.055em; }
  .section-intro { font-size: 14px; margin-top: 14px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading-row > .text-link { align-self: flex-end; margin-bottom: 0; font-size: 13px; }
  .section-caption { font-size: 17px; margin-top: 10px; }
  .contact-layout { display: block; }
  .contact-copy h2 { font-size: clamp(41px, 7.4vw, 56px); }
  .contact-copy .button { padding: 12px 14px; }
  .farewell-art { min-height: 300px; margin-top: 8px; margin-right: 0; }
  .farewell-art > img { width: 235px; right: 18%; bottom: 25px; }
  .farewell-note { right: 1%; top: 30px; font-size: 17px; }
  .signature { right: 17%; font-size: 32px; }
  .site-footer { padding: 24px; flex-wrap: wrap; justify-content: space-between; gap: 13px; font-size: 9px; }
  .site-footer .handwritten { order: 3; flex-basis: 100%; font-size: 12px; }
  .archive-main { padding: 30px 24px 60px; }
  .archive-header { display: block; }
  .archive-header h1 { font-size: clamp(43px, 9vw, 66px); }
  .archive-note { display: none; }
  .archive-intro { margin-top: 18px; font-size: 14px; }
  .archive-controls { gap: 8px; margin-top: 30px; }
  .filter-button { padding: 8px 10px; font-size: 16px; }
  .project-count { width: 100%; margin-left: 10px; margin-top: 5px; }
  .archive-list { grid-template-columns: minmax(0, 1fr); gap: 35px; margin-top: 22px; }
  .archive-project:nth-child(even) { padding-top: 0; }
  .archive-project h2 { font-size: clamp(28px, 6.5vw, 38px); }
  .archive-copy { padding-inline: 5px; }
  .archive-copy > p:not(.archive-meta) { font-size: 12px; }
  .archive-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 450px) {
  :root { --page-gutter: 21px; }
  .hero { padding-left: 21px; padding-right: 21px; }
  h1 { font-size: clamp(43px, 10vw, 52px); }
  .hero .button { padding: 12px 13px; font-size: 11px; }
  .hero-art { margin-left: -21px; width: calc(100% + 42px); height: 285px; margin-top: 2px; }
  .desk-illustration { width: 106%; right: -3%; }
  .hero-note { top: 14%; left: 5%; font-size: 14px; }
  .wall-note { top: 26%; right: 3%; font-size: 12px; }
  .chapter { padding-left: 21px; padding-right: 21px; }
  .small-link { margin-top: 12px; }
  .mobile-break { display: block; }
  .contact-copy h2 { font-size: clamp(34px, 9.5vw, 44px); }
  .contact-copy .actions { gap: 8px; }
  .contact-copy .button { padding: 11px 12px; font-size: 11px; gap: 6px; }
  .contact-copy .button .icon { width: 13px; height: 13px; }
  .email-copy { font-size: 11px; }
  .email-copy span { margin-left: 4px; font-size: 9px; }
  .farewell-art > img { right: 16%; width: 225px; }
  .farewell-note { font-size: 15px; }
}
/* Each homepage chapter is a complete manga page; the archive scrolls naturally. */
.manga-reader {
  --manga-screen: 100vh;
  --manga-header: 88px;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
}
@supports (height: 100svh) {
  .manga-reader { --manga-screen: 100svh; }
}
.manga-reader .site-header { height: var(--manga-header); min-height: var(--manga-header); padding-block: 0; scroll-snap-align: start; }
.manga-reader .hero { min-height: calc(var(--manga-screen) - var(--manga-header)); }
.manga-reader .chapter { min-height: var(--manga-screen); display: flex; align-items: center; padding-block: clamp(56px, 7vh, 90px); scroll-snap-align: start; scroll-margin-top: 0; }
.manga-reader .chapter-inner { width: 100%; }

@media (min-width: 761px) {
  .manga-reader .hero-art { width: min(64vw, calc((var(--manga-screen) - var(--manga-header)) * 1.42)); }
  .manga-reader .small-link { font-size: 12px; margin-top: 25px; }
  .manga-reader .farewell-art { min-height: 450px; }
  .manga-reader .farewell-art > img { width: clamp(280px, 27vw, 390px); }
  .manga-reader .farewell-note { top: 5px; }
}

@media (min-width: 761px) and (max-height: 800px) {
  .manga-reader .chapter { padding-block: 48px; }
}
@media (max-width: 760px) {
  .manga-reader { --manga-header: 72px; scroll-snap-type: none; }
  .manga-reader .chapter { padding-block: 60px; }
}
@media (max-height: 600px) {
  .manga-reader { scroll-snap-type: none; }
}

/* Section 03: brush lettering and a wide, lightly staggered project spread. */
.manga-reader #work { --ink: oklch(20% .05 260); --yellow: oklch(87% .145 86); --project-brush: 'Knewave', var(--hand); --project-mono: 'Consolas', 'Courier New', monospace; color: var(--ink); background: var(--paper); padding: clamp(36px, 5.1vh, 64px) 8.3vw 48px 5.2vw; align-items: flex-start; }
#work .section-heading-row { align-items: flex-end; }
#work .chapter-heading { padding-top: clamp(49px, 3.7vw, 66px); }
#work .chapter-number { font: 400 clamp(62px, 4.5vw, 82px)/1 var(--project-brush); top: -4px; letter-spacing: -.055em; rotate: -5deg; }
#work .chapter-number span { font: inherit; font-size: .72em; margin-left: 5px; }
#work .chapter-number::before { inset: 48% -12px 2px -9px; transform: rotate(-7deg); }
#work .section-heading-row > .text-link { font-family: var(--hand); font-size: clamp(17px, 1.2vw, 22px); font-weight: 700; rotate: -4deg; margin-bottom: 15px; }
#work h2 { font: 400 clamp(43px, 3.85vw, 70px)/1.16 var(--project-brush); letter-spacing: -.025em; text-transform: uppercase; rotate: -3deg; transform-origin: left center; }
#work .highlight::before { height: .24em; bottom: -.015em; left: -.1em; right: -.12em; opacity: .95; transform: rotate(-1.5deg); clip-path: polygon(0 86%, 8% 34%, 3% 35%, 14% 12%, 95% 0, 91% 23%, 100% 20%, 96% 53%, 100% 67%, 26% 93%, 0 100%, 5% 62%); }
#work h2 .highlight::before { height: .32em; bottom: -.055em; }
#work h2 .highlight::after, #work h3 .highlight::after { content: ''; position: absolute; left: -.12em; right: -.16em; bottom: -.08em; height: .035em; background: var(--yellow); rotate: -2deg; clip-path: polygon(0 60%, 97% 0, 100% 50%, 10% 100%); }
#work .project-lineup { --lineup-rule: var(--rule); position: relative; margin: 4px -12px 0; padding: 0; border: 0; box-shadow: none; background: none; scroll-margin-top: 24px; }
#work .project-order { position: absolute; left: 130px; bottom: -27px; margin: 0; font: 13px/1.5 var(--hand); color: var(--muted); }
#work .featured-projects { --project-columns: 3; --project-gap: clamp(28px, 2.45vw, 46px); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--project-columns) - 1) * var(--project-gap)) / var(--project-columns)); gap: var(--project-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; padding: 22px 12px 12px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.js #work .featured-projects { scrollbar-width: none; }
.js #work .featured-projects::-webkit-scrollbar { display: none; }
#work .project-panel { position: relative; min-width: 0; scroll-margin-top: 30px; scroll-snap-align: start; }
#work .project-panel:nth-child(3n + 2) { padding-top: 17px; }
#work .project-panel:nth-child(3n) { padding-top: 4px; }
#work .project-image { display: flex; flex-direction: column; position: relative; height: 100%; min-height: 0; overflow: visible; color: inherit; text-decoration: none; }
#work .project-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.6; width: 100%; rotate: -.7deg; margin: 0 0 8px; isolation: isolate; }
#work .project-panel:nth-child(even) .project-visual { rotate: 1deg; }
#work .project-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; background: oklch(93.7% .022 88); clip-path: polygon(2% 9.4%, 98% 1.4%, 97% 97.5%, .7% 93.6%); pointer-events: none; }
#work .project-visual::after { content: ''; position: absolute; inset: 0; background: var(--ink); mask: url('assets/project-frame.svg') center / 100% 100% no-repeat; pointer-events: none; }
#work .project-note { position: absolute; left: 15px; top: -18px; z-index: 1; font: 700 17px/1.1 var(--hand); rotate: -7deg; }
#work .project-placeholder { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); text-align: center; padding: 20px; }
#work .project-placeholder > span:first-child { display: none; }
#work .project-placeholder strong { font: 400 19px/1.2 var(--hand); }
#work .project-placeholder > span:last-child { font: 10px/1.5 var(--project-mono); }
.project-cover { position: absolute; inset: 0; display: block; overflow: hidden; container-type: inline-size; background: var(--paper-deep); clip-path: polygon(2% 9.4%, 98% 1.4%, 97% 97.5%, .7% 93.6%); }
.project-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.project-cover .cover-mascot, .project-cover .cover-brand, .project-cover .cover-brand-secondary { object-fit: contain; }
.cover-meme { background: oklch(40% .025 75); }
.cover-meme .cover-image, .cover-meme .cover-secondary { top: 6%; width: 50%; height: 94%; object-fit: cover; object-position: center top; }
.cover-meme .cover-secondary { left: 50%; }
.cover-student { background: oklch(88% .12 80); }
.cover-student::before { content: ''; position: absolute; inset: -15% 50% -15% -15%; background: oklch(96% .035 90); rotate: -12deg; }
.cover-student .cover-image { inset: 10% auto auto 6%; width: 43%; height: 116%; object-position: center top; rotate: -8deg; border: 3px solid oklch(97% .018 87); border-radius: 4%; }
.cover-student .cover-mascot { inset: auto -3% 0 auto; width: 65%; height: 95%; object-position: center bottom; }
.cover-randy { background: oklch(89% .06 138); }
.cover-randy .cover-image { inset: 6% auto auto 0; width: 100%; height: 100%; object-position: left center; }
.cover-randy .cover-mascot { inset: auto 0 -4% auto; width: 43%; height: 98%; object-position: center bottom; }
.cover-gigamaid { background: oklch(81% .07 155); }
.cover-gigamaid .cover-image { inset: 14% auto auto -8%; width: 88%; height: 82%; object-position: left center; rotate: -7deg; border: 3px solid var(--paper); }
.cover-gigamaid .cover-mascot { inset: auto -3% -3% auto; width: 57%; height: 101%; object-position: center bottom; }
.cover-chromium { background: oklch(84% .075 305); }
.cover-chromium .cover-image { inset: 15% 4% auto auto; width: 45%; height: 110%; object-position: center top; rotate: 6deg; border: 3px solid var(--paper); border-radius: 3%; }
.cover-chromium .cover-mascot { inset: auto auto -4% 1%; width: 60%; height: 101%; object-position: center bottom; }
.cover-metin { background: oklch(23% .025 65); }
.cover-metin .cover-image { opacity: .32; }
.cover-metin .cover-brand { inset: 25% 10% auto; width: 80%; height: 50%; filter: drop-shadow(0 3px 2px oklch(12% .01 65 / .7)); }
.cover-orders .cover-image { object-position: center 45%; }
.cover-orders .cover-brand, .cover-orders .cover-brand-secondary { inset: 16% auto auto 8%; width: 19%; height: 30%; padding: 2%; background: var(--paper); border-radius: 50%; }
.cover-orders .cover-brand-secondary { left: 30%; }
.cover-seo .cover-image { object-position: center 55%; }
.cover-caption { position: absolute; left: 6%; bottom: 10%; padding: 2% 4%; background: var(--yellow); color: var(--ink); font: 700 5cqw/1.2 var(--hand); rotate: -3deg; }
.cover-allopets .cover-image { object-position: 40% center; }
#work .project-source-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; }
#work .project-source-preview strong { font: 400 42px/1.2 var(--project-brush); }
#work .project-source-preview span, #work .project-source-preview small { font: 11px/1.5 var(--project-mono); color: var(--muted); }
#work .project-copy { position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 0 5px 4px; }
#work .project-tag { display: flex; align-items: center; gap: 7px; font: 12px/1.5 var(--project-mono); text-transform: uppercase; color: var(--ink); margin-bottom: 5px; }
#work .project-tag svg { width: 18px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
#work .project-copy h3 { font: 400 clamp(29px, 2.45vw, 45px)/1.23 var(--project-brush); letter-spacing: -.04em; min-height: 0; margin: 0 0 9px; }
#work #project-touta .project-copy h3 { max-width: 16ch; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.18; }
#work .project-copy p { font: 13px/1.75 var(--project-mono); min-height: 5.25em; max-width: 45ch; color: var(--ink); }
#work .project-stack { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 5px; color: var(--ink); font: 11px/1.5 var(--project-mono); margin: 13px 0 15px; }
#work .project-stack > span { position: relative; padding: 3px 8px; background: oklch(84.5% .008 88 / .65); clip-path: polygon(0 32%, 9% 24%, 4% 14%, 25% 10%, 34% 0, 56% 8%, 82% 2%, 100% 20%, 93% 45%, 100% 57%, 88% 77%, 93% 88%, 65% 96%, 47% 88%, 23% 100%, 4% 85%, 8% 61%, 0 59%); }
#work .project-stack > i { font-style: normal; }
#work .project-read { display: inline-flex; align-items: center; gap: 23px; min-height: 44px; padding: 8px 0; margin-top: auto; font: 700 20px/1.4 var(--hand); position: relative; }
#work .project-read::after { content: ''; position: absolute; bottom: 6px; left: -5px; right: 20px; height: 5px; background: var(--yellow); rotate: -2deg; clip-path: polygon(0 90%, 7% 32%, 95% 0, 100% 61%, 45% 77%); }
#work .project-image:hover .project-read { color: var(--muted); }
#work .project-image:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
#work .project-doodle { position: absolute; right: 0; bottom: -4px; width: 78px; height: 74px; fill: none; stroke: var(--ink); stroke-width: 1.7; rotate: -9deg; pointer-events: none; }
#work .project-edge-mark { position: absolute; left: -22px; bottom: 22px; width: 34px; height: 76px; fill: none; stroke: var(--yellow); stroke-width: 3; pointer-events: none; rotate: -7deg; }
#work .project-panel:nth-child(3n + 2) .project-edge-mark { left: auto; right: -12px; bottom: auto; top: -1px; rotate: 12deg; }
#work .project-browse { display: block; margin: 0; }
#work .project-browse > .handwritten { display: none; }
#work .project-paging { display: block; }
#work .project-range { position: absolute; left: 12px; bottom: -26px; font: 11px/1.5 var(--project-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
#work .project-paging button { position: absolute; top: clamp(110px, 10.5vw, 190px); translate: 0 -50%; z-index: 4; isolation: isolate; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: var(--paper); font-size: 27px; transition: transform .2s var(--ease); }
#work [data-project-step="-1"] { left: max(-38px, calc(15px - 5.2vw)); }
#work [data-project-step="1"] { right: -38px; }
#work .project-paging button::before { content: ''; position: absolute; z-index: -1; inset: 8px 3px; background: var(--yellow); clip-path: polygon(4% 15%, 94% 0, 100% 28%, 95% 51%, 100% 84%, 7% 100%, 0 73%, 6% 48%, 0 31%); opacity: .7; rotate: -4deg; }
#work .project-paging button:hover:enabled { transform: translateX(-3px); }
#work .project-paging button:last-child:hover:enabled { transform: translateX(3px); }
#work .project-paging button:disabled { opacity: .3; cursor: default; }
#work .button-paper { background: var(--ink); color: var(--paper); }
#work .button-paper:hover { background: var(--muted); }
.play-circle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid var(--paper); color: var(--paper); background: var(--ink); border-radius: 50%; padding: 16px; display: flex; }
.play-circle .icon { width: 23px; height: 23px; margin-left: 3px; }
@media (min-width: 1600px) {
  #work .project-copy p { font-size: 14px; }
  #work .project-stack { font-size: 12px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #work .featured-projects { --project-columns: 2; }
  #work .project-copy h3 { font-size: 31px; }
}
@media (max-width: 760px) {
  .manga-reader #work { padding: 52px 25px 65px; }
  #work .section-heading-row { flex-direction: row; align-items: flex-end; gap: 16px; }
  #work .chapter-heading { padding-top: 47px; }
  #work .chapter-number { font-size: 58px; }
  #work .section-heading-row > .text-link { align-self: auto; font-size: 15px; margin-bottom: 3px; white-space: nowrap; gap: 8px; }
  #work h2 { font-size: clamp(29px, 6.8vw, 45px); max-width: 8em; }
  #work .project-lineup { margin-top: 22px; }
  #work .featured-projects { --project-columns: 1; --project-gap: 26px; }
  #work .project-panel:nth-child(n) { padding-top: 0; }
  #work .project-visual { aspect-ratio: 1.55; }
  #work .project-copy { padding-inline: 3px; }
  #work .project-copy h3 { font-size: clamp(25px, 7vw, 37px); }
  #work .project-copy p { min-height: 0; font-size: 12px; }
  #work .project-tag { font-size: 11px; }
  #work .project-stack { font-size: 10px; margin-block: 15px 20px; column-gap: 7px; }
  #work .project-read { font-size: 18px; }
  #work .project-doodle { width: 58px; height: 58px; }
  #work .project-paging button { top: calc(22px + (100vw - 50px) / 3.1); }
  #work [data-project-step="-1"] { left: -10px; }
  #work [data-project-step="1"] { right: -10px; }
  #work .project-note { top: -25px; font-size: 15px; }
  #work .project-range { font-size: 10px; margin-right: 4px; }
  #work .project-order { left: 94px; right: 8px; bottom: -27px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .manga-reader { scroll-snap-type: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-waiting { opacity: 1; translate: none; rotate: none; }
  .chapter-heading.is-waiting .highlight::before { scale: 1 1; }
  [data-parallax] { translate: none; }
}

/* Supporting hero links. */
.hero-contact { font-size: 12px; font-weight: 700; text-decoration-color: var(--orange); padding: 10px 2px; }
.hero-contact span { color: var(--orange); }
.availability { max-width: 470px; }
/* Section 02 follows the reference's wide scene and four compact ink panels. */
#skills { --toolkit-gutter: clamp(28px, 4.6vw, 88px); --toolkit-height: clamp(500px, 64svh, 640px); padding: 28px max(64px, 5.8vw) 28px var(--toolkit-gutter); display: block; background: var(--paper); }
#skills .about-heading-row { position: relative; align-items: flex-start; }
#skills .chapter-heading { padding-top: 55px; }
#skills .chapter-number { font-family: 'Knewave', var(--hand); font-size: clamp(58px, 4.7vw, 84px); font-weight: 400; font-style: normal; letter-spacing: -.04em; top: -3px; rotate: -5deg; }
#skills .chapter-number::before { inset: 36% -13% -3% -10%; opacity: 1; }
#skills h2 { font-family: 'Knewave', var(--hand); font-size: clamp(48px, 4.65vw, 80px); font-weight: 400; letter-spacing: -.035em; line-height: 1.16; rotate: -3deg; white-space: nowrap; }
#skills h2 .highlight::before { inset: auto -.04em -.03em -.04em; height: .42em; transform: rotate(-1.5deg); opacity: 1; }
#skills .section-intro { max-width: 47%; font-family: var(--hand); font-size: clamp(16px, 1.2vw, 21px); font-weight: 400; line-height: 1.35; margin-top: 14px; color: var(--ink); rotate: -2deg; }

.toolkit-flourish { position: absolute; top: 0; left: 43%; width: 70px; height: 100px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.toolkit-spread { position: relative; display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: 18px; margin-top: -66px; align-items: stretch; }
.toolkit-scene { position: relative; min-width: 0; margin-left: calc(clamp(28px, 2.3vw, 44px) - var(--toolkit-gutter)); margin-right: 4px; }
.toolkit-scene-art { position: absolute; inset: 26px 0 0; overflow: hidden; background: var(--ink); clip-path: polygon(0 16%,100% 0,94% 100%,0 85%); }
.toolkit-scene-image { display: block; width: 100%; height: 100%; }
.toolkit-scene-outline { position: absolute; inset: 26px 0 0; width: 100%; height: calc(100% - 26px); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ability-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: var(--toolkit-height); transform: skewX(-4.6deg); transform-origin: top left; }
.toolkit-panel { --panel-paper: var(--paper); position: relative; isolation: isolate; min-width: 0; padding: 0 0 14px; display: flex; flex-direction: column; background: var(--panel-paper); transform-origin: top left; transition: background-color .2s var(--ease); }
.toolkit-panel::before { content: ''; position: absolute; inset: -2px; z-index: 3; background: var(--ink); mask: url('assets/toolkit-frame.svg') center / 100% 100% no-repeat; pointer-events: none; }
.toolkit-panel::after { content: ''; position: absolute; inset: -3px; z-index: 2; pointer-events: none; background: linear-gradient(48deg,var(--yellow) 0 10px,transparent 11px) left bottom / 29px 27px no-repeat, linear-gradient(15deg,var(--yellow) 0 12px,transparent 13px) right top / 65px 20px no-repeat; }
.toolkit-panel > :not(.toolkit-panel-art) { position: relative; z-index: 1; }
.toolkit-panel > .toolkit-number { position: absolute; top: 9px; left: 11px; font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1; padding: 3px 8px 0; color: var(--ink); background: var(--yellow); border: 1.3px solid var(--ink); border-radius: 35% 17% 24% 14%; rotate: -5deg; }
.toolkit-panel h3 { min-width: 0; max-width: 100%; font-family: var(--hand); font-size: clamp(23px, 1.65vw, 29px); font-weight: 700; letter-spacing: -.025em; margin: 11px 16px 0; line-height: 1.1; }
.toolkit-panel > p { min-width: 0; max-width: none; font-size: clamp(12px, .85vw, 15px); line-height: 1.4; margin: 5px 16px 0; }
.toolkit-ml { transform: skewY(-2.1deg); }
.toolkit-frontend { transform: skewY(-1.5deg); }
.toolkit-backend { transform: skewY(-1deg); }
.toolkit-tools { transform: skewY(-1.6deg); }
.toolkit-panel-art { position: relative; z-index: 0; min-width: 0; width: 100%; height: clamp(76px, 11svh, 112px); flex-shrink: 0; overflow: hidden; border-bottom: 1px solid var(--ink); }
.toolkit-preview { position: absolute; display: block; width: 100%; height: 100%; object-fit: cover; }
.toolkit-frontend-preview { object-position: center 65%; }
.skill-tokens { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; list-style: none; margin: 10px 16px 0; }
.skill-tokens li { display: flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid oklch(23% .035 250 / .65); border-radius: 18px 15px 18px 13px; background: oklch(96.3% .014 88 / .91); font-size: clamp(11px, .73vw, 13px); line-height: 1.3; font-weight: 600; }
.skill-tokens svg { width: 17px; height: 17px; flex-shrink: 0; }
.skill-tokens svg:has(use[href$="#ruff"]) { fill: #d7ff64; stroke: var(--ink); stroke-width: .45; stroke-linejoin: round; }
.skill-wordmark img { width: 52px; height: 15px; object-fit: contain; }
.toolkit-bottom { display: grid; grid-template-columns: 43fr 57fr; align-items: center; gap: 20px; margin-top: 26px; }
.toolkit-process { grid-column: -2 / -1; justify-self: start; margin-left: clamp(15px, 2vw, 36px); font-size: clamp(19px, 1.4vw, 26px); line-height: 1.4; rotate: -2deg; position: relative; padding: 0 6px 5px; white-space: nowrap; }
.toolkit-process::after { content: ''; position: absolute; inset: auto 0 0; height: 5px; background: var(--yellow); clip-path: polygon(0 20%,96% 0,100% 45%,3% 100%); rotate: -1deg; }
.toolkit-process span { color: var(--orange); margin-inline: 8px; }
.toolkit-mountain, .toolkit-gate { position: absolute; z-index: 3; bottom: 4px; width: clamp(110px, 13vw, 235px); color: var(--ink); pointer-events: none; }
.toolkit-mountain { left: 0; rotate: -3deg; }
.toolkit-gate { right: 0; width: clamp(110px, 10vw, 180px); }
.toolkit-mountain g, .toolkit-gate g { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.toolkit-mountain .mountain-wash { color: oklch(61% .07 155); opacity: .55; }
.toolkit-mountain .mountain-tint { fill: oklch(78% .055 155 / .4); }
.toolkit-mountain .mountain-sun { fill: var(--yellow); opacity: .7; }
.toolkit-gate g > path:first-child { fill: oklch(75% .13 45 / .6); }
.toolkit-gate g > path:last-child { fill: oklch(65% .07 155 / .55); opacity: 1; }
.toolkit-mountain pattern path { fill: none; stroke: currentColor; stroke-width: .7; }

summary::-webkit-details-marker { display: none; }

summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }

.case-phones { display: flex; justify-content: center; align-items: center; height: clamp(320px, 31vw, 465px); overflow: hidden; gap: 35px; background: oklch(90% .085 86); padding: 28px 20px; }
.case-phones img { width: auto; height: 94%; border-radius: 12px; border: 2px solid var(--ink); transform: rotate(-5deg); }
.case-phones img + img { transform: rotate(5deg) translateY(5px); }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.case-tags span { border: 0; padding: 4px 8px; font: 11px/1.5 var(--project-mono); background: var(--paper-deep); }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: var(--yellow); }
.project-lineup { scroll-margin-top: 24px; }

/* Section 04: four recent experiences on one paper spread. */
.manga-reader #internships { --experience-brush: 'Knewave', var(--hand); --experience-mono: 'Consolas', 'Courier New', monospace; padding-inline: 5.2vw 8.3vw; align-items: flex-start; }
#internships .chapter-heading { padding-top: clamp(70px, 5.4vw, 88px); }
#internships .chapter-number, #internships h2 { font-family: var(--experience-brush); font-weight: 400; }
#internships .chapter-number { font-size: clamp(58px, 4.2vw, 76px); rotate: -5deg; }
#internships h2 { font-size: clamp(40px, 3.7vw, 66px); letter-spacing: -.035em; rotate: -1deg; transform-origin: left center; }
.internship-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); margin-top: 34px; }
.internship-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: clamp(80px, 7.5vw, 108px) minmax(0, 1fr); gap: clamp(17px, 1.7vw, 26px); min-width: 0; padding: clamp(20px, 2vw, 28px); border: 2px solid var(--ink); border-radius: 22px 17px 25px 15px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.internship-panel:nth-child(even) { border-radius: 16px 24px 17px 23px; }
.internship-panel::before { content: ''; position: absolute; z-index: -1; top: 11px; right: 13px; width: 44px; height: 13px; background: var(--yellow); rotate: -11deg; clip-path: polygon(0 25%, 95% 0, 100% 75%, 4% 100%); }
.internship-panel::after { content: ''; position: absolute; z-index: -1; left: 16px; bottom: 14px; width: 35px; height: 25px; background: repeating-linear-gradient(-55deg, var(--ink) 0 1px, transparent 1px 5px); opacity: .13; clip-path: polygon(0 10%, 100% 65%, 90% 100%, 0 100%); }
.internship-visual { position: relative; display: grid; place-items: center; align-self: start; aspect-ratio: 1; overflow: hidden; isolation: isolate; border-radius: 50%; background: var(--paper-deep); border: 2px solid var(--ink); box-shadow: 2px 3px 0 oklch(23% .035 250 / .15); }
.internship-visual::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(var(--ink) .7px, transparent 1px) 0 0 / 5px 5px; opacity: .12; }
.internship-visual img { width: 66%; height: 66%; object-fit: contain; }
.visual-arsii { background: oklch(42% .07 190); }
.visual-arsii img { width: 100%; height: 100%; border-radius: 50%; }
.visual-pura { background: oklch(94% .035 190); }
.visual-pura img { width: 70%; height: 70%; }
.visual-polytech { background: oklch(98% .008 88); }
.visual-polytech img { width: 88%; height: 66%; }
.internship-copy { min-width: 0; padding: 0 2px 1px; }
.internship-kind { font: 600 11px/1.45 var(--sans); letter-spacing: .035em; text-transform: uppercase; color: var(--muted); }
.internship-copy h3 { margin-top: 7px; font: 400 clamp(24px, 2vw, 32px)/1.22 var(--experience-brush); letter-spacing: -.035em; }
.internship-copy h3 .highlight::before { height: .28em; opacity: 1; transform: rotate(-2deg); }
.internship-role { margin-top: 7px; font: 700 15px/1.4 var(--sans); }
.internship-copy > p:not(.internship-kind):not(.internship-role) { margin-top: 9px; font: 13px/1.6 var(--sans); color: var(--muted); }
.internship-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; list-style: none; }
.internship-tags li { padding: 4px 8px; background: var(--paper-deep); border-radius: 2px 5px 3px 4px; border-bottom: 1px solid var(--rule); font: 10px/1.35 var(--experience-mono); }
.internship-selection { margin-top: 20px; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) and (min-width: 761px) { .internship-panel { grid-template-columns: 70px minmax(0, 1fr); gap: 15px; padding: 20px; } .internship-copy h3 { font-size: 25px; } }
@media (max-width: 760px) {
  .manga-reader #internships { padding: 52px 25px 65px; }
  #internships .chapter-heading { padding-top: 60px; }
  #internships .chapter-number { font-size: 58px; }
  #internships h2 { font-size: clamp(31px, 7vw, 45px); }
  .internship-track { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 25px; }
  .internship-panel { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; border-radius: 18px 13px 20px 14px; padding: 20px 16px; }
  .internship-copy h3 { font-size: clamp(23px, 5.7vw, 30px); }
}

/* Section 04: a scrapbook of the Code for MENA trip. */
.manga-reader #hackathons { padding-block: clamp(44px, 5vh, 64px); }
#hackathons .chapter-number, #hackathons h2 { font-family: 'Knewave', var(--hand); font-weight: 400; }
#hackathons .chapter-number { font-style: normal; rotate: -5deg; }
#hackathons h2 { font-size: clamp(40px, 4vw, 66px); line-height: 1.25; letter-spacing: -.035em; }
#hackathons .section-intro { font-size: 21px; }
.mena-spread { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(35px, 4.8vw, 74px); align-items: center; margin-top: 38px; }
.mena-gallery { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 10px 8px 15px; }
.trip-photo { position: relative; min-width: 0; border: 1px solid var(--rule); background: var(--paper); padding: 10px 10px 0; box-shadow: 2px 4px 0 oklch(23% .035 250 / .12); }
.trip-photo::before { content: ''; position: absolute; z-index: 1; width: 68px; height: 23px; background: oklch(89% .115 86 / .75); top: -12px; left: calc(50% - 34px); rotate: -6deg; clip-path: polygon(0 6%, 95% 0, 100% 17%, 96% 44%, 100% 85%, 5% 100%, 0 75%, 4% 51%); }
.trip-photo-group { grid-column: 1; rotate: -3deg; }
.trip-photo-poster { grid-column: 2; grid-row: 1 / span 2; rotate: 4deg; }
.trip-photo-event { grid-column: 1; rotate: -2deg; }
.trip-photo-event::before { rotate: 8deg; }
.trip-media { display: block; overflow: hidden; background: var(--paper-deep); }
.trip-media img { display: block; width: 100%; height: auto; }
.trip-media-group { aspect-ratio: 2; }
.trip-media-group img { transform: translateY(-17%); }
.trip-media-poster { aspect-ratio: 472 / 590; }
.trip-media-poster img { transform: translateY(-18.125%); }
.trip-media-event { aspect-ratio: 2.6; }
.trip-media-event img { height: 100%; object-fit: cover; object-position: center 45%; }
.trip-media:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.trip-credit { display: block; width: fit-content; max-width: 100%; margin: -4px 3px 10px; color: var(--muted); font-size: 10px; text-underline-offset: 3px; }
.trip-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 3px 12px; }
.trip-photo figcaption .handwritten { font-size: clamp(13px, 1.15vw, 17px); }
.trip-photo figcaption > span:last-child { font-size: 10px; color: var(--muted); }
.mena-copy { min-width: 0; }
.mena-margin-note { font-size: 18px; color: var(--muted); rotate: -4deg; margin-bottom: 23px; width: fit-content; max-width: 100%; }
.mena-copy h3 { font-family: 'Knewave', var(--hand); font-weight: 400; font-size: clamp(30px, 2.9vw, 46px); line-height: 1.3; letter-spacing: -.035em; margin-bottom: 24px; }
.mena-copy > p:not(.handwritten) { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 36ch; }
.mena-copy > p + p { margin-top: 16px; }
.mena-description strong { color: var(--ink); font-weight: 800; }
.mena-copy .mena-signoff { font-size: 20px; margin-top: 27px; rotate: -3deg; width: fit-content; max-width: 100%; }
@media (min-width: 1101px) and (max-width: 1300px) {
  .mena-spread { margin-top: 26px; }
  .mena-gallery { gap: 12px; padding-block: 5px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .mena-spread { gap: 30px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .mena-gallery { gap: 22px 14px; padding-inline: 5px; }
  .trip-photo { padding: 7px 7px 0; }
  .trip-photo figcaption { padding: 10px 0; }
  .mena-copy > p:not(.handwritten) { font-size: 14px; }
  .mena-margin-note { font-size: 16px; }
}
@media (max-width: 760px) {
  .mena-spread { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 30px; }
  .mena-copy { grid-row: 1; }
  .mena-copy h3 { font-size: clamp(35px, 7vw, 46px); margin-bottom: 18px; }
  .mena-copy > p:not(.handwritten) { max-width: 52ch; }
  .mena-margin-note { margin-bottom: 16px; }
  .mena-copy .mena-signoff { font-size: 18px; margin-top: 20px; }
  .mena-gallery { max-width: 560px; width: 100%; justify-self: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 16px; padding-inline: 7px; }
  .trip-photo-group { grid-column: 1 / -1; margin-inline: 12px; }
  .trip-photo-poster { grid-column: 1; grid-row: 2; }
  .trip-photo-event { grid-column: 2; grid-row: 2; }
  .trip-media-event { aspect-ratio: 1; }
  .trip-photo figcaption .handwritten { font-size: 14px; }
  #hackathons .section-intro { font-size: 19px; }
}
@media (max-width: 380px) {
  #hackathons h2 { font-size: 37px; }
  .mena-gallery { gap: 28px; grid-template-columns: minmax(0, 1fr); padding-inline: 12px; }
  .trip-photo-group, .trip-photo-poster, .trip-photo-event { grid-column: auto; grid-row: auto; margin-inline: 0; }
  .trip-photo-poster { width: 80%; justify-self: center; }
  .trip-media-event { aspect-ratio: 1.5; }
  .trip-photo figcaption .handwritten { font-size: 16px; }
}
@media (hover: hover) and (pointer: fine) {
}
@media (prefers-reduced-motion: no-preference) {
}
@media (min-width: 761px) and (max-height: 950px) {
  .manga-reader .skills-chapter, .manga-reader .work-chapter { padding-block: 42px; }
  .project-image { height: clamp(220px, 31vh, 300px); }.project-lineup { margin-top: 23px; padding-top: 15px; }
  .lineup-masthead { margin-bottom: 15px; }.lineup-footer { margin-top: 16px; padding-top: 12px; }.project-copy { padding-top: 16px; }
}
@media (min-width: 1001px) and (max-height: 850px) {
  .manga-reader .skills-chapter, .manga-reader .work-chapter { padding-block: 34px; }
  .skills-chapter h2, .work-chapter h2 { font-size: 46px; }
  .skills-chapter .section-intro { margin-top: 10px; font-size: 14px; }

  .work-chapter .project-image { height: 28vh; min-height: 210px; }
  .work-chapter .section-caption { margin-top: 8px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .manga-reader { scroll-snap-type: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 30px 38px 0; }
  .hero h1 { font-size: clamp(59px, 7.8vw, 72px); }
  .hero .desktop-break { display: none; }
  .hero-roles { max-width: 650px; }
  .manga-reader .hero-art { position: relative; width: calc(100% + 76px); height: 380px; margin-left: -38px; top: auto; bottom: auto; margin-top: 0; }
  .desk-illustration { width: 83%; right: 0; bottom: 0; }
  .hero-note { left: 10%; top: 9%; font-size: 18px; }
  .wall-note { top: 18%; right: 4%; font-size: 14px; }
  .spark-one { right: 17%; top: 35%; }
  .project-copy h3 { min-height: 52px; }
  .project-copy p { min-height: 100px; }
}
@media (max-width: 760px) {

  .case-phones { height: clamp(270px, 80vw, 430px); gap: 20px; padding: 22px 12px; }
}
@media (max-width: 450px) {
  .hero-contact { font-size: 11px; }
  .case-phones { gap: 15px; }
}
@media (max-width: 760px) {
  html:not(.js) .site-header { height: auto; flex-wrap: wrap; gap: 15px; padding-block: 20px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 12px 16px; }
  html:not(.js) .site-header nav { position: static; display: flex; flex-flow: row wrap; border: 0; box-shadow: none; padding: 0; gap: 10px 18px; }
  html:not(.js) .site-header nav a { font-size: 13px; }
  html:not(.js) .menu-toggle { display: none; }
}

@media (min-width: 1101px) and (max-width: 1450px) {
  .toolkit-scene-art { clip-path: polygon(0 16%,100% 0,92% 100%,0 85%); }
  .toolkit-scene-outline path { d: path("M3 78 596 5 547 475 4 407 3 80M9 82 589 11m-49 461-109-13M4 405l95 14"); }
  .toolkit-panel { padding-bottom: 12px; }
  .toolkit-panel h3 { font-size: 26px; }
  .toolkit-backend h3 { font-size: 22px; }
  .toolkit-panel > p { font-size: 13px; }
  .skill-tokens { gap: 5px; }
  .skill-tokens li { font-size: 11px; padding-inline: 6px; }
  .skill-tokens svg { width: 14px; height: 14px; }
}
@media (min-width: 1101px) and (max-height: 800px) {
  #skills { --toolkit-height: 520px; padding-top: 26px; }
  #skills .chapter-heading { padding-top: 53px; }
  #skills .chapter-number { font-size: 61px; }
  #skills h2 { font-size: clamp(48px, 4.4vw, 65px); }
  #skills .section-intro { font-size: 17px; }
  .toolkit-spread { margin-top: -60px; }
  .toolkit-panel { padding-bottom: 10px; }
  .toolkit-panel-art { height: 76px; }
  .toolkit-panel h3 { font-size: 24px; }
  .toolkit-backend h3 { font-size: 21px; }
  .toolkit-panel > p { font-size: 12px; }
  .toolkit-bottom { margin-top: 20px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #skills { --toolkit-height: 540px; padding: 40px 38px 90px; }
  #skills h2 { font-size: 58px; }
  #skills .section-intro { max-width: 70%; font-size: 18px; }

  .toolkit-flourish { display: none; }
  .ability-spread { height: auto; min-height: var(--toolkit-height); grid-template-rows: auto auto; transform: none; }
  .toolkit-spread { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 15px; }
  .toolkit-scene { margin-left: 0; margin-right: 0; height: 320px; width: 80%; }
  .toolkit-scene-art { clip-path: polygon(0 8%,100% 0,94% 100%,0 90%); }
  .toolkit-scene-outline { display: none; }
  .toolkit-scene-image { object-fit: cover; }
  .toolkit-panel { padding-bottom: 18px; }
  .toolkit-panel-art { height: 120px; }
  .toolkit-panel h3 { font-size: 29px; }
  .toolkit-backend h3 { font-size: 26px; }
  .toolkit-panel > p { font-size: 14px; }
  .skill-tokens li { font-size: 11px; }
  .toolkit-bottom { grid-template-columns: 1fr; gap: 15px; }
  .toolkit-process { font-size: 24px; justify-self: center; margin-left: 0; }
}
@media (max-width: 760px) {
  #skills { --toolkit-gutter: 24px; padding: 42px 24px 90px; }
  #skills .about-heading-row { display: block; }
  #skills .chapter-heading { padding-top: 51px; }
  #skills .chapter-number { font-size: 58px; }
  #skills h2 { font-size: clamp(34px, 7.6vw, 55px); white-space: normal; }
  #skills .section-intro { max-width: none; font-size: 17px; margin-top: 17px; }
  #skills .section-intro br { display: none; }

  .toolkit-flourish { display: none; }
  .toolkit-spread { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 20px; }
  .toolkit-scene { margin: 0; height: clamp(265px, 76vw, 430px); }
  .ability-spread { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; min-height: 0; gap: 21px; transform: none; }
  .toolkit-panel { padding-bottom: 20px; min-height: 0; }
  .toolkit-panel-art { height: clamp(110px, 38vw, 190px); }
  .toolkit-panel h3 { font-size: clamp(22px, 6.6vw, 29px); }
  .toolkit-backend h3 { font-size: 25px; white-space: normal; }
  .toolkit-panel > p { font-size: 14px; max-width: none; margin-top: 7px; }
  .skill-tokens { gap: 6px; margin-top: 17px; }
  .skill-tokens li { font-size: 11px; padding: 4px 7px; }
  .skill-tokens svg { width: 16px; height: 16px; }
  .toolkit-bottom { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 30px; }
  .toolkit-process { font-size: clamp(17px, 4.4vw, 24px); justify-self: center; margin-left: 0; }
  .toolkit-process span { margin-inline: 4px; }

  .toolkit-mountain, .toolkit-gate { width: 95px; bottom: -1px; }
}

#skills::after { right: 21%; }

/* The opening and first chapter share the brush, marker, and ink of the later pages. */
.hero { --opening-brush: 'Knewave', var(--hand); padding-left: 5.2vw; padding-right: 5.2vw; grid-template-columns: 52% 48%; }
.hero .eyebrow { font-family: var(--hand); font-size: 18px; font-weight: 400; letter-spacing: 0; text-transform: none; margin-bottom: 20px; rotate: -2deg; }
.hero h1 { font-family: var(--opening-brush); font-weight: 400; letter-spacing: -.045em; font-size: clamp(66px, 6.6vw, 100px); line-height: 1.16; }
.hero-greeting { display: block; width: fit-content; rotate: -3deg; margin-bottom: 17px; }
.hero h1 .highlight::before { height: .38em; bottom: .02em; opacity: 1; }
.hero h1 .highlight::after { display: none; }
.hero-statement { position: relative; display: block; font-size: .72em; line-height: 1.14; letter-spacing: -.035em; }
.hero-working svg { position: absolute; left: 0; bottom: -.17em; width: 2.8em; height: .15em; fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; }
.hero .hero-roles { font-size: 14px; margin-top: 29px; max-width: 480px; }
.hero .availability { font-size: 13px; max-width: 49ch; margin-top: 9px; }
.hero .actions { margin-top: 25px; gap: 15px; }
.hero .button { border-radius: 0; font-size: 13px; min-height: 47px; }
.hero .button-ink { background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); rotate: -1.5deg; }
.hero .button-outline { border-color: transparent; border-bottom-color: var(--ink); background: transparent; padding-inline: 3px; margin-left: 4px; }
.hero .hero-contact { margin-left: 3px; }
.hero .scroll-cue { font-family: var(--hand); font-size: 14px; margin-top: 34px; letter-spacing: 0; }
.hero .hero-note { font-size: 21px; left: 35%; top: 10%; }
.hero .wall-note { right: 7%; }
.hero .spark-one { right: 21%; }
.manga-reader .hero-art { width: min(63vw, calc((var(--manga-screen) - var(--manga-header)) * 1.42)); }
.hero .desk-illustration { width: min(106%, calc((var(--manga-screen) - var(--manga-header)) * 1.3)); }
.manga-reader #about { padding: clamp(44px, 5.2vh, 66px) 8.3vw 65px 5.2vw; }
#about { --about-brush: 'Knewave', var(--hand); }
#about .chapter-heading { padding-top: 57px; }
#about .chapter-number { font: 400 clamp(62px, 4.7vw, 84px)/1 var(--about-brush); letter-spacing: -.04em; top: -5px; rotate: -5deg; }
#about .chapter-number::before { inset: 42% -12% -2% -9%; opacity: 1; }
#about h2 { font: 400 clamp(44px, 4.4vw, 76px)/1.15 var(--about-brush); letter-spacing: -.035em; rotate: -2deg; }
#about h2 .highlight::before { opacity: 1; height: .38em; bottom: -.01em; }
#about .section-intro { font-family: var(--hand); font-size: clamp(18px, 1.3vw, 23px); color: var(--ink); line-height: 1.35; margin-top: 16px; rotate: -1deg; }
#about .section-intro br { display: none; }
#about .about-margin-note { font-size: clamp(19px, 1.5vw, 26px); rotate: -7deg; transform: none; padding: 0 20px 14px; position: relative; }
#about .about-margin-note::after { content: ''; position: absolute; left: 18px; right: 20px; bottom: 3px; height: 5px; background: var(--yellow); rotate: -3deg; clip-path: polygon(0 40%,100% 0,96% 80%,3% 100%); }
#about .about-spread { grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr); gap: 20px; margin-top: 29px; }
#about .bio-panel { border: 0; min-width: 0; }
#about .bio-panel::before { content: ''; position: absolute; inset: -2px; z-index: 4; background: var(--ink); mask: url('assets/toolkit-frame.svg') center / 100% 100% no-repeat; pointer-events: none; }
#about .panel-caption { font-family: var(--hand); font-size: 15px; font-weight: 400; margin-bottom: 9px; }
#about .origin-panel { transform: rotate(-1.3deg); }
#about .origin-art { min-height: 205px; background: radial-gradient(oklch(23% .035 250 / .16) .7px, transparent .9px) 0 0 / 5px 5px, var(--paper-deep); border-bottom: 1.5px solid var(--ink); }
#about .origin-art img { width: 105%; right: -1%; bottom: -17%; }
#about .thought-bubble { margin: 18px 0 0 18px; font-size: 16px; }
#about .origin-location { padding: 3px 9px; font-family: var(--hand); font-size: 12px; rotate: 2deg; }
#about .origin-caption { padding: 20px 26px 23px; }
#about .origin-caption h3 { font: 400 clamp(24px, 2vw, 33px)/1.2 var(--about-brush); letter-spacing: -.025em; }
#about .origin-caption > p:not(.panel-caption) { font-size: 14px; max-width: 43ch; }
#about .origin-caption .small-link { margin-top: 16px; font-family: var(--hand); font-size: 15px; }
#about .founder-panel { grid-template-columns: minmax(0, 1fr) 31%; padding: 24px 28px 27px; gap: 17px; box-shadow: none; transform: rotate(.7deg); background: linear-gradient(110deg, var(--paper) 55%, var(--paper-deep)); }
#about .founder-copy { position: relative; z-index: 1; }
#about .founder-copy h3 { font: 400 clamp(52px, 4.4vw, 64px)/1.05 var(--about-brush); letter-spacing: -.04em; margin-bottom: 16px; }
#about .founder-role { display: block; font-family: var(--hand); font-size: .38em; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 6px; }
#about .founder-copy h3 .highlight::before { opacity: 1; }
#about .founder-copy > p:not(.panel-caption) { max-width: 41ch; font-size: 14px; }
#about .founder-copy .text-link { font-family: var(--hand); font-size: 16px; margin-top: 20px; }
#about .founder-art { transform: rotate(5deg); align-self: center; justify-self: center; width: clamp(120px, 10vw, 150px); max-width: 100%; }
#about .founder-art .handwritten { font-size: clamp(15px, 1.3vw, 22px); }
#about .founder-art svg { width: 100%; margin: 18px 0 12px; }
#about .founder-stamp { font-family: var(--hand); font-size: 14px; font-weight: 400; }
#about .freelance-story { background: var(--paper); color: var(--ink); padding: 20px 28px; gap: 14px; transform: rotate(-.5deg); overflow: hidden; }
#about .freelance-story > div, #about .freelance-story .text-link { position: relative; z-index: 1; }
#about .freelance-story > div { max-width: 78%; }
#about .freelance-story h3 { font: 400 clamp(25px, 2.15vw, 31px)/1.2 var(--about-brush); letter-spacing: -.025em; margin-bottom: 10px; }
#about .freelance-story .panel-caption { color: var(--ink); }
#about .freelance-story p:not(.panel-caption) { color: var(--muted); font-size: 13px; max-width: 37ch; }
#about .freelance-story .text-link { font-family: var(--hand); font-size: 15px; align-self: flex-end; white-space: nowrap; }
.freelance-sketch { position: absolute; width: 128px; right: -15px; top: 8px; rotate: 12deg; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .15; }
.freelance-sketch .sketch-mark { stroke: var(--yellow); stroke-width: 3; }

@media (min-width: 1101px) {
  #about .origin-art img { width: 100%; height: 100%; right: 0; bottom: 0; object-fit: cover; object-position: right 35%; }
}
@media (min-width: 1001px) and (max-height: 950px) {
  .manga-reader #about { padding-block: 36px 50px; }
  #about h2 { font-size: clamp(44px, 4.4vw, 64px); }
  #about .about-spread { margin-top: 24px; }

}
@media (min-width: 1001px) and (max-height: 800px) {
  .hero { padding-block: 24px 35px; }
  .hero h1 { font-size: clamp(66px, 6vw, 88px); }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero .hero-roles { margin-top: 22px; }
  .hero .scroll-cue { margin-top: 24px; }
  #about .origin-art { min-height: 170px; }
  #about .origin-caption { padding: 17px 23px; }
  #about .founder-panel { padding-block: 18px 22px; }
  #about .freelance-story { padding-block: 19px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hero .hero-roles { max-width: 440px; }
  .hero .hero-contact { display: none; }
  .hero .hero-note { left: 27%; font-size: 18px; }
  #about .about-spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 17px; }
  #about .founder-panel { padding: 22px; grid-template-columns: minmax(0, 1fr); }
  #about .founder-art { position: absolute; right: 18px; top: 30px; width: 85px; opacity: .2; }
  #about .founder-art .handwritten, #about .founder-stamp { display: none; }
  #about .freelance-story { padding: 22px; }
  #about .freelance-story > div { max-width: 100%; }
  #about .freelance-story .text-link { margin-top: 14px; }
  #about .origin-art img { width: 130%; right: -6%; bottom: -8%; }
}
@media (max-width: 1000px) {
  .hero { padding: 30px 5.2vw 0; }
  .hero h1 { font-size: clamp(64px, 8.5vw, 90px); }
  .hero-greeting { margin-bottom: 17px; }
  .hero-statement { font-size: .75em; }
  .hero .hero-roles { max-width: 580px; }
  .manga-reader .hero-art { position: relative; width: calc(100% + 10.4vw); height: clamp(300px, 45vw, 420px); margin-left: -5.2vw; margin-top: 0; }
  .hero .hero-note { left: 8%; top: 6%; font-size: 18px; }
  .hero .desk-illustration { width: min(88%, 730px); bottom: 0; }
  .hero .wall-note { right: 6%; top: 18%; }
}
@media (max-width: 760px) {
  .hero { padding: 26px 24px 0; }
  .hero .eyebrow { font-size: 16px; margin-bottom: 19px; }
  .hero h1 { font-size: clamp(55px, 10vw, 76px); }
  .hero-greeting { margin-bottom: 23px; }
  .hero-statement { font-size: .77em; line-height: 1.18; }
  .hero .hero-roles { margin-top: 25px; font-size: 13px; max-width: 40ch; }
  .hero .availability { font-size: 12px; max-width: 43ch; }
  .hero .actions { gap: 12px; margin-top: 22px; }
  .hero .button { font-size: 12px; padding-inline: 12px; }
  .hero .button-outline { padding-inline: 2px; }
  .hero .hero-contact { display: none; }
  .hero .scroll-cue { font-size: 13px; margin-top: 27px; }
  .manga-reader .hero-art { margin-left: -24px; width: calc(100% + 48px); height: clamp(265px, 60vw, 400px); margin-top: 9px; }
  .hero .hero-note { font-size: 15px; left: 5%; top: 8%; }
  .hero .wall-note { font-size: 12px; right: 5%; top: 20%; }
  .hero .desk-illustration { width: 92%; }
  .manga-reader #about { padding: 55px 25px 65px; }
  #about .chapter-heading { padding-top: 48px; }
  #about .chapter-number { font-size: 58px; }
  #about h2 { font-size: clamp(36px, 7.3vw, 54px); }
  #about .about-heading-row { display: block; }
  #about .about-margin-note { padding: 0; margin-top: 17px; font-size: 17px; rotate: 0deg; display: inline-block; }
  #about .about-margin-note br { display: none; }
  #about .about-margin-note::after { left: 0; right: 0; bottom: -5px; height: 3px; }
  #about .section-intro { font-size: 18px; margin-top: 19px; }
  #about .section-intro br { display: none; }
  #about .about-spread { grid-template-columns: minmax(0, 1fr); margin-top: 27px; gap: 25px; }
  #about .origin-panel { transform: rotate(-.8deg); }
  #about .origin-art { min-height: clamp(215px, 56vw, 340px); }
  #about .origin-art img { width: min(105%, 620px); bottom: -16%; }
  #about .origin-caption { padding: 23px; }
  #about .origin-caption h3 { font-size: 28px; }
  #about .founder-panel { padding: 25px 23px; grid-template-columns: minmax(0, 1fr) 25%; gap: 16px; }
  #about .founder-copy h3 { font-size: 56px; }
  #about .founder-art .handwritten { font-size: 15px; }
  #about .founder-stamp { font-size: 11px; padding: 4px 7px; }
  #about .freelance-story { padding: 25px 23px; }
  #about .freelance-story > div { max-width: 100%; }
  #about .freelance-story h3 { font-size: 28px; }
  #about .freelance-story .text-link { margin-top: 20px; }

}
@media (max-width: 360px) {
  .hero h1 { font-size: 49px; }
  .hero .eyebrow { font-size: 14px; }
  .hero .button { font-size: 11px; padding-inline: 10px; gap: 7px; }
  .hero .hero-note { font-size: 13px; width: 105px; }
  #about h2 { font-size: 32px; }
  #about .founder-panel { grid-template-columns: minmax(0, 1fr); }
  #about .founder-art { display: none; }
  #about .freelance-story h3 { font-size: 25px; }
}

@media (hover: hover) and (pointer: fine) {
  .toolkit-panel:hover { background-color: oklch(94.5% .045 88); }
}
.toolkit-panel:focus-within { background-color: oklch(94.5% .045 88); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .toolkit-panel { transition: background-color .2s var(--ease), translate .25s var(--ease); }
  .toolkit-panel:hover { translate: 0 -3px; }
}

/* A person-free workbench, following the supplied manga workspace reference. */
.manga-reader .hero-art.workspace-art { width: 63vw; top: -48px; bottom: 0; }
.workspace-illustration { position: absolute; bottom: 0; right: 0; width: 100%; height: 100%; object-fit: fill; }
.workspace-note { position: absolute; left: 25%; top: 13%; width: 228px; padding: 32px 25px 44px; font-size: 23px; rotate: -4deg; background: linear-gradient(oklch(40% .02 88 / .12) 1px, transparent 1px) 0 0 / 17px 17px, linear-gradient(90deg, oklch(40% .02 88 / .12) 1px, transparent 1px) 0 0 / 17px 17px, var(--paper); border: 1px solid var(--rule); box-shadow: 3px 4px 0 oklch(23% .035 250 / .13); }
.workspace-note::before { content: ''; position: absolute; width: 78px; height: 25px; top: -16px; left: 72px; background: oklch(85% .07 86 / .65); border: 1px solid oklch(56% .04 86 / .3); rotate: 1deg; }
.workspace-note::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -3px; height: 6px; background: var(--paper); clip-path: polygon(0 40%,4% 65%,8% 28%,12% 61%,17% 12%,23% 57%,29% 31%,35% 77%,42% 24%,48% 60%,53% 18%,58% 60%,64% 32%,72% 75%,79% 27%,85% 61%,92% 10%,96% 56%,100% 20%,100% 100%,0 100%); }
.workspace-note > span { position: relative; }
.workspace-note > span::after { content: ''; position: absolute; inset: 2px -6px 0; border: 1.5px solid var(--orange); border-radius: 50%; rotate: -5deg; }
.workspace-note svg { position: absolute; right: 15px; bottom: 18px; width: 65px; height: 51px; fill: none; stroke: var(--orange); stroke-width: 1.5; }
#about .origin-art .origin-workspace { width: 100%; height: 100%; right: 0; bottom: 0; object-fit: cover; object-position: right bottom; }
.toolkit-scene-art:has([href="assets/workspace-manga.png"]) { background: var(--paper-deep); }
.manga-reader .farewell-signoff { min-height: 330px; margin-right: 0; }
.farewell-signoff .farewell-note { right: 22px; top: 0; rotate: 3deg; transform: none; }
.farewell-envelope { position: absolute; width: 240px; right: 30px; bottom: 53px; stroke: var(--ink); stroke-width: 1.5; rotate: -7deg; }
.farewell-envelope .envelope-marker { fill: var(--yellow); }
.farewell-envelope .envelope-flight { stroke: var(--orange); }
.farewell-signoff .signature { font-size: 32px; right: 46px; bottom: 12px; rotate: -5deg; }
@media (min-width: 1001px) {
  .hero:has(.workspace-art) { grid-template-columns: 47% 53%; }
  .hero:has(.workspace-art) .hero-roles { max-width: 530px; }
  .hero:has(.workspace-art) .hero-working svg { width: 3em; }
}
@media (min-width: 1001px) and (max-width: 1400px) {
  .workspace-note { width: 194px; padding: 26px 21px 38px; font-size: 20px; left: 23%; }
  .workspace-note::before { left: 58px; width: 70px; height: 22px; }
}
@media (max-width: 1000px) {
  .manga-reader .hero-art.workspace-art { position: relative; width: calc(100% + 10.4vw); height: clamp(440px, 80vw, 700px); margin-left: -5.2vw; margin-top: -20px; top: auto; bottom: auto; }
  .workspace-illustration { object-fit: contain; object-position: right bottom; }
  .workspace-note { width: 200px; font-size: 20px; left: 25%; top: 13%; padding: 26px 23px 40px; }
  .workspace-note::before { left: 62px; }
}
@media (max-width: 760px) {
  .manga-reader .hero-art.workspace-art { width: calc(100% + 48px); margin-left: -24px; height: clamp(340px, 88vw, 570px); margin-top: 12px; }
  .workspace-note { left: 14%; top: 8%; width: 153px; font-size: 16px; padding: 19px 18px 29px; }
  .workspace-note::before { width: 55px; height: 18px; left: 48px; top: -12px; }
  .workspace-note svg { width: 44px; height: 35px; right: 6px; bottom: 10px; }
  .manga-reader .farewell-signoff { min-height: 260px; margin-top: 15px; }
  .farewell-envelope { width: 205px; right: 19%; bottom: 45px; }
  .farewell-signoff .farewell-note { right: 1%; font-size: 15px; }
  .farewell-signoff .signature { font-size: 29px; right: 23%; bottom: 3px; }
}
/* A paper-and-ink bookmark: scroll progress and a way back to the opening. */
.scroll-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45; width: 60px; height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 50% 46% 49% 47%; box-shadow: 2px 3px 0 oklch(23% .035 250 / .14); text-decoration: none; }
.scroll-top:hover { background: var(--yellow); }
.scroll-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 3; rotate: -90deg; pointer-events: none; }
.scroll-ring-track { stroke: oklch(23% .035 250 / .12); }
.scroll-ring-fill { stroke: var(--orange); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.scroll-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scroll-percent { display: none; }
html:not(.js) .scroll-percent { display: none; }
#main:focus { outline: none; }
body.dialog-open .scroll-top { visibility: hidden; }

/* Each project is its own page, with its own voice and the shared sketchbook. */
.project-detail { --project-brush: 'Knewave', var(--hand); --project-mono: 'Consolas', 'Courier New', monospace; max-width: 1550px; margin: auto; padding: 28px 5.2vw 70px; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.detail-topline a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 18px/1.4 var(--hand); text-decoration-color: var(--orange); }
.detail-header { margin-block: 25px 35px; }
.detail-category { display: flex; align-items: center; gap: 18px; font: 12px/1.5 var(--project-mono); }
.detail-category > span { font: 400 35px/1.3 var(--project-brush); rotate: -5deg; }
.detail-header h1 { font: 400 clamp(40px, 4.8vw, 78px)/1.22 var(--project-brush); letter-spacing: -.04em; margin-top: 13px; rotate: -1.5deg; transform-origin: left center; text-wrap: balance; }
.project-detail .highlight::before { opacity: 1; height: .3em; bottom: -.01em; }
.project-detail h1 .highlight, .detail-contact .highlight { display: inline-block; max-width: 100%; }
.detail-deck { font-size: clamp(21px, 2vw, 29px); margin-top: 24px; max-width: 60ch; }
.detail-opening { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 65px); align-items: center; }
.detail-cover, .detail-brief { min-width: 0; }
.detail-cover .archive-visual { aspect-ratio: 1.55; }
.detail-cover figcaption { font: 14px/1.5 var(--hand); padding: 12px 10px 0; }
.detail-brief > p { font-size: 15px; line-height: 1.8; }
.detail-brief .detail-lead { font-size: 18px; line-height: 1.65; margin-bottom: 16px; }
.detail-brief .detail-status { font-size: 17px; margin-top: 17px; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 18px; }
.detail-resource { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 17px/1.4 var(--hand); text-decoration-color: var(--orange); text-underline-offset: 5px; }
.detail-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; margin-top: 55px; }
.detail-notes article { min-width: 0; border-top: 2px solid var(--ink); padding-top: 17px; }
.detail-notes article > span { display: block; font-size: 19px; color: var(--muted); margin-bottom: 14px; }
.detail-notes h2 { font: 400 clamp(24px, 2.2vw, 33px)/1.25 var(--project-brush); letter-spacing: -.025em; margin-bottom: 15px; }
.detail-notes p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.detail-gallery { margin-top: 60px; }
.detail-gallery > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.detail-gallery h2, .detail-contact h2 { font: 400 clamp(32px, 3.5vw, 49px)/1.25 var(--project-brush); letter-spacing: -.03em; }
.detail-gallery header .handwritten { font-size: 20px; rotate: 3deg; }
.detail-frame { position: relative; width: min(100%, 1000px); margin-inline: auto; background: var(--paper); rotate: -.6deg; }
.detail-frame::after { content: ''; position: absolute; inset: -2px; background: var(--ink); mask: url('assets/toolkit-frame.svg') center / 100% 100% no-repeat; pointer-events: none; }
.detail-media { display: block; position: relative; }
.detail-media img { width: 100%; aspect-ratio: 1.8; object-fit: contain; background: var(--paper-deep); }
.detail-enlarge { position: absolute; bottom: 12px; right: 14px; padding: 5px 10px; background: var(--yellow); color: var(--ink); font-size: 17px; rotate: -2deg; }
.detail-frame figcaption { font: 15px/1.5 var(--hand); padding: 14px 18px; border-top: 1px solid var(--rule); }
.detail-frame .case-phones { height: clamp(370px, 44vw, 620px); gap: 60px; }
.detail-source-note { margin-top: 36px; font-size: 12px; color: var(--muted); max-width: 75ch; }
.detail-contact { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 34px; margin-top: 45px; border-top: 2px solid var(--ink); }
.detail-contact p { font-size: 20px; margin-bottom: 12px; }
.detail-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; border-top: 1px solid var(--rule); padding-top: 22px; }
.detail-pagination a { display: flex; flex-direction: column; gap: 12px; padding-block: 10px; min-height: 70px; text-decoration: none; }
.detail-pagination a:last-child { text-align: right; align-items: flex-end; }
.detail-pagination .handwritten { font-size: 18px; text-decoration: underline; text-decoration-color: var(--orange); }
.detail-pagination strong { font: 400 clamp(20px, 2vw, 29px)/1.3 var(--project-brush); letter-spacing: -.02em; }
@media (max-width: 1000px) {
  .detail-opening { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .detail-cover { max-width: 720px; width: 100%; }
  .detail-cover .archive-visual { aspect-ratio: 1.8; }
  .detail-brief { max-width: 70ch; }
}
@media (max-width: 760px) {
  .scroll-top { width: 54px; height: 54px; right: 15px; bottom: max(15px, env(safe-area-inset-bottom)); }
  .project-detail { padding: 22px 24px 55px; }
  .detail-topline a { font-size: 15px; }
  .detail-header { margin-block: 24px 27px; }
  .detail-header h1 { font-size: clamp(31px, 7.8vw, 52px); }
  .detail-category { font-size: 10px; gap: 13px; }
  .detail-category > span { font-size: 29px; }
  .detail-deck { font-size: 22px; margin-top: 19px; }
  .detail-brief .detail-lead { font-size: 17px; }
  .detail-notes { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 38px; }
  .detail-notes h2 { font-size: 27px; }
  .detail-gallery { margin-top: 40px; }
  .detail-gallery > header { display: block; }
  .detail-gallery header .handwritten { margin-top: 15px; rotate: 0deg; }
  .detail-frame .case-phones { height: clamp(275px, 85vw, 470px); gap: 16px; }
  .detail-enlarge { font-size: 14px; bottom: 7px; right: 7px; }
  .detail-frame figcaption { font-size: 14px; padding: 12px; }
  .detail-contact { flex-direction: column; align-items: flex-start; }
  .detail-contact h2 { font-size: 33px; }
  .detail-pagination { gap: 20px; }
  .detail-pagination .handwritten { font-size: 16px; }
  .detail-pagination strong { font-size: 21px; }
  .site-footer { padding-right: 80px; }
}

/* Motion follows the sketchbook: paper settles, then the ink is drawn. */
.email-copy { position: relative; isolation: isolate; }
.email-copy::before { content: ''; position: absolute; z-index: -1; inset: -4px -8px; background: var(--yellow); clip-path: polygon(0 12%,98% 0,100% 89%,2% 100%); scale: 0 1; transform-origin: left; }
.email-copy.is-copied::before { scale: 1 1; }

@keyframes ink-stroke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes scroll-hint {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}
@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .55s var(--ease) var(--reveal-delay, 0ms), translate .65s var(--ease) var(--reveal-delay, 0ms), scale .65s var(--ease) var(--reveal-delay, 0ms), transform .25s var(--ease), background-color .2s ease; }
  .reveal.is-waiting { opacity: 0; translate: 0 28px; }
  :is(.bio-panel, .toolkit-panel, .project-panel, .trip-photo, .internship-panel, .detail-cover, .detail-frame).reveal.is-waiting { scale: .975; }
  .trip-photo.reveal.is-waiting { transform: rotate(2deg); }
  .reveal .highlight::before { transition: scale .6s var(--ease) calc(var(--reveal-delay, 0ms) + 130ms); }
  .reveal.is-waiting .highlight::before { scale: 0 1; }
  .reveal.is-revealed .highlight::before { scale: 1 1; }
  .ink-drawing.reveal { translate: none; }
  .ink-drawing path:not(.envelope-marker) { stroke-dasharray: 1; }
  .ink-drawing.is-waiting path:not(.envelope-marker) { stroke-dashoffset: 1; }
  .ink-drawing.is-revealed path:not(.envelope-marker) { animation: ink-stroke .85s var(--ease) calc(var(--ink-delay, 0ms) + 180ms) both; }
  .scroll-cue > span:last-child { animation: scroll-hint 1.4s cubic-bezier(.65, 0, .35, 1) 1.1s 3; }
  .media-dialog[open]::backdrop { animation: backdrop-enter .18s ease-out; }
  .email-copy::before { transition: scale .25s var(--ease); }
  .hero-socials a, .filter-button, .scroll-top, .dialog-close, .menu-toggle { transition: transform .18s var(--ease), scale .12s var(--ease), background-color .2s ease; }
  .hero-socials a:active, .filter-button:active, .scroll-top:active, .dialog-close:active, .menu-toggle:active, #work .project-paging button:active:enabled { scale: .95; }

  /* Keyboard focus makes content available immediately, including offscreen slides. */
  .reveal:focus-within, .reveal.is-waiting:focus-within { opacity: 1; translate: none; scale: 1; transition: none; }
  .reveal:focus-within .highlight::before { scale: 1 1; transition: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .site-header nav.is-open { transform-origin: top right; animation: media-enter .2s var(--ease); }
  .site-header nav.is-open a { animation: opening-copy .22s var(--ease) both; }
  .site-header nav.is-open a:nth-child(2) { animation-delay: 20ms; }
  .site-header nav.is-open a:nth-child(3) { animation-delay: 40ms; }
  .site-header nav.is-open a:nth-child(4) { animation-delay: 60ms; }
  .site-header nav.is-open a:nth-child(5) { animation-delay: 80ms; }
  .site-header nav.is-open a:nth-child(6) { animation-delay: 100ms; }
  .menu-toggle:focus-visible + nav.is-open, .menu-toggle:focus-visible + nav.is-open a,
  .site-header nav.is-open:has(:focus-visible), .site-header nav.is-open:has(:focus-visible) a { animation: none; }
  .reveal { transition-duration: .4s, .5s, .5s, .2s, .2s; }
  .reveal.is-waiting { translate: 0 18px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover { transform: translateY(-3px); box-shadow: 3px 4px 0 var(--yellow); }
  .hero-socials a:hover { transform: translateY(-3px) rotate(-5deg); }
  .toolkit-panel.reveal:hover:not(.is-waiting) { translate: 0 -5px; transition-delay: 0ms; }
  .project-visual { transition: transform .3s var(--ease); }
  .project-cover .cover-mascot, .project-cover .cover-brand { transition: transform .35s var(--ease); }
  .project-image:hover .project-visual { transform: translateY(-5px) rotate(-.4deg); }
  :is(.project-image, .archive-link):hover .cover-mascot { transform: translateY(-4px) rotate(-2deg); }
  :is(.project-image, .archive-link):hover .cover-brand { transform: translateY(-3px); }
  .project-image:hover .project-read > span { translate: 5px 0; }
  .project-read > span { display: inline-block; transition: translate .2s var(--ease); }
  .trip-photo.reveal { transition-delay: 0ms; }
  .trip-photo.reveal:hover:not(.is-waiting) { translate: 0 -4px; transform: rotate(1deg); }
  .scroll-top:hover { transform: translateY(-3px); }
}
