[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77PY1XD48NQ201R24CC20K6":3,"skill-same:01M77PY1XD48NQ201R24CC20K6":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77PY1XD48NQ201R24CC20K6","personal-portfolio",null,"Tactile Brutalist + High-End Editorial personal portfolio SPA with React 19, TypeScript 6 strict, Vite 6, Tailwind CSS v4 CSS-first @theme, pnpm. Covers complete lifecycle from scaffold to shipping: kinetic typography, hash-based routing, import.meta.glob content ingestion, dual-theme (night\u002Fday) design system, WCAG AAA accessibility, component-driven digital installation. Use when building a distinctive, anti-generic portfolio or personal site with React + Vite + Tailwind v4.","nordeim\u002Fstory-into-video","nordeim","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194583642?v=4","01M75CZEV8C3V4DDQNPQ1EA7QJ","01M77NXQ9G1G1YWJMQTCEFSG23",0,"MIT","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fpersonal-portfolio\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: personal-portfolio\ndescription: >\n  Tactile Brutalist + High-End Editorial personal portfolio SPA with React 19,\n  TypeScript 6 strict, Vite 6, Tailwind CSS v4 CSS-first @theme, pnpm.\n  Covers complete lifecycle from scaffold to shipping: kinetic typography, hash-based\n  routing, import.meta.glob content ingestion, dual-theme (night\u002Fday) design system,\n  WCAG AAA accessibility, component-driven digital installation. Use when building\n  a distinctive, anti-generic portfolio or personal site with React + Vite + Tailwind v4.\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash\nlicense: MIT\nversion: 3.0.0\n---\n\n# The Engineered Soul — Portfolio Master Skill (v3.0.0)\n\n**One-Shot Prevention:** This skill was distilled from a real build cycle that migrated a 1265-line JSX + 4411-line CSS monolith into a clean, component-driven TypeScript + Tailwind v4 installation. It encodes both the deep architectural thinking (the \"why\") and the practical remediation lessons (the \"what went wrong and how we fixed it\"). Skipping any section creates rework, visual regression, or accessibility failure. This document is the absolute single source of truth.\n\n---\n\n## 1. Project Identity & Non-Negotiables\n\n### The Dual-Thesis\nThe aesthetic is a deliberate collision of two extremes. Every design decision must answer: *\"Does this serve the tension between the mathematical and the emotional, or does it safely retreat to the middle?\"*\n- **Tactile Brutalism (The Machine):** Visible structure, 1px borders, `0px` border-radius, mono utility type, high contrast, no decoration without function, raw terminal aesthetics.\n- **High-End Editorial (The Soul):** Cormorant Garamond serif headlines, extreme whitespace, cinematic motion, asymmetric spreads, human textures, kinetic typography.\n\n### The \"AI Slop\" Rejection List (Strictly Forbidden)\n- Purple gradients on white backgrounds or safe neutral palettes.\n- Safe Inter\u002FRoboto-only font pairings without distinct typographical hierarchy.\n- Predictable card grids, hero sections, Bootstrap-like aesthetics, or template UI.\n- **Any border radius other than `0px`** (See Section 3.3).\n- Generic stock photography, placeholder aesthetics, or uncurated layouts.\n- External UI libraries (No shadcn\u002Fui, No Radix, No Framer Motion, No React Router). All components are bespoke.\n\n### Mandatory Six-Phase Workflow\nEvery change to this codebase MUST follow:\n1. **ANALYZE**: Deep requirement mining; trace component tree, data flow, and CSS cascade. Never assume.\n2. **PLAN**: Write down every file change before touching code.\n3. **VALIDATE**: Present the plan for explicit user approval before implementing.\n4. **IMPLEMENT**: Write code following the patterns in this document. Touch only what is necessary.\n5. **VERIFY**: Run `pnpm typecheck && pnpm build` after every change. Verify visually and functionally.\n6. **DELIVER**: Confirm zero errors, zero warnings, and provide complete handoff documentation.\nNo phase can be skipped. No code is written without explicit user confirmation.\n\n---\n\n## 2. Tech Stack & Environment\n\n| Layer | Technology | Version | Purpose |\n|---|---|---|---|\n| Framework | React | ^19.0.0 | Concurrent rendering, StrictMode |\n| Language | TypeScript | ^6.0.0 | Strict typing, erasable syntax only |\n| Build Tool | Vite | ^6.3.0 | Zero-config HMR, `import.meta.glob` |\n| Styling | Tailwind CSS | ^4.1.0 | CSS-first `@theme`, no JS config |\n| Package Manager | pnpm | >= 9 | Workspace support, strict resolution |\n| Fonts | Google Fonts | — | Cormorant Garamond, IBM Plex Mono, Inter |\n\n### Critical TypeScript Settings (`tsconfig.json`)\n- `strict: true`\n- `erasableSyntaxOnly: true` — **NON-NEGOTIABLE**. Rejects `enum`, `namespace`, and parameter properties. Always use union types (e.g., `icon: 'mail' | 'linkedin' | 'github'`).\n- `noUncheckedIndexedAccess: true` — Makes array\u002Fobject index access return `T | undefined`. You must handle the `undefined` case explicitly, or use a non-null assertion (`!`) *only* when logically guaranteed by bounds checking (e.g., `if (index \u003C arr.length) arr[index]!`).\n- Path alias: `@\u002F*` → `.\u002Fsrc\u002F*`\n\n### Vite Configuration (`vite.config.ts`)\n- `base: '.\u002F'` — Required for GitHub Pages relative path resolution.\n- `@tailwindcss\u002Fvite` plugin must be present in `plugins: []`.\n- Do not inject legacy PostCSS or `tailwind.config.js`. All tokens are in `src\u002Fstyles\u002Findex.css`.\n\n---\n\n## 3. The Design System (Complete Code-First)\n\nThere is NO `tailwind.config.js`. All design tokens live in `src\u002Fstyles\u002Findex.css` inside `@theme`. Do not deviate.\n\n### 3.1 Full Tailwind v4 `@theme` Block\n```css\n@import \"tailwindcss\";\n\n@theme {\n  \u002F* Grid Unit — the mathematical backbone *\u002F\n  --unit: 28px;\n  --spacing-grid: 28px;\n  --spacing-section: 104px;\n\n  \u002F* Colors — Dark Theme (default) *\u002F\n  --color-ink: #07080d;\n  --color-ink-light: #15151b;\n  --color-surface: #11131d;\n  --color-surface-elevated: #1a1c2e;\n  --color-text: #ffffff;\n  --color-text-secondary: rgba(255, 255, 255, 0.68);\n  --color-text-muted: rgba(255, 255, 255, 0.52);\n  --color-text-faint: rgba(255, 255, 255, 0.38);\n  --color-border: rgba(255, 255, 255, 0.13);\n  --color-border-strong: rgba(255, 255, 255, 0.24);\n  --color-border-accent: rgba(255, 255, 255, 0.18);\n\n  \u002F* Colors — Light Theme *\u002F\n  --color-day-bg: #fff8e8;\n  --color-day-surface: #ffffff;\n  --color-day-text: #15151b;\n  --color-day-text-secondary: rgba(21, 21, 27, 0.64);\n  --color-day-border: rgba(21, 21, 27, 0.1);\n  --color-day-border-strong: rgba(21, 21, 27, 0.18);\n\n  \u002F* Accent Colors — One per creative category *\u002F\n  --color-accent-code: #2457ff;\n  --color-accent-design: #ff5c35;\n  --color-accent-art: #00a77f;\n  --color-accent-photo: #f2b705;\n  --color-accent-poetry: #8f55ff;\n  --color-accent-story: #e5488b;\n  --color-accent-experiments: #16a3b8;\n\n  \u002F* Fonts — Three-tier hierarchy *\u002F\n  --font-editorial: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;\n  --font-utility: 'IBM Plex Mono', 'JetBrains Mono', monospace;\n  --font-body: 'Inter', system-ui, -apple-system, sans-serif;\n\n  \u002F* Border Radius — Brutalist defaults *\u002F\n  --radius-brutal: 0px;\n}\n```\n\n### 3.2 The 28px Grid\nEvery layout must align with the 28px rhythm. This is defined via a visible background grid:\n```css\n.theme-night::before, .theme-day::before {\n  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;\n  background-image: \n    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),\n    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);\n  background-size: 28px 28px;\n}\n```\n**Rule:** All padding, margins, and grid gaps should be multiples of 28px (or exact fractions like `14px`, `7px`) unless there is a specific micro-justification.\n\n### 3.3 Brutalist Borders (Absolute `rounded-none` Mandate)\n**GROUND TRUTH:** Every single element must use `rounded-none`. This includes structural containers, interactive elements (buttons, badges), images, inputs, and overlays.\n- **Verification:** `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-xl\\|rounded-sm\" src\u002F` must return **zero matches**. Any documentation suggesting exceptions is obsolete.\n- **Known Deviation:** Legacy code may contain `rounded-sm` on `MachineOverlay.tsx` lines 48, 58, and `rounded` on line 25. **Purge these. Replace with `rounded-none`.**\n\n### 3.4 Light Theme Override Specificity\nLight theme overrides must use Tailwind v4's arbitrary variant syntax with `&` to ensure specificity.\n```css\n\u002F* CORRECT *\u002F\n[.theme-day_&]:bg-day-bg\n[.theme-day_&]:text-day-text\n\n\u002F* WRONG — missing &, uses space instead of underscore *\u002F\n.theme-day & \n[.theme-day &] \n```\n\n### 3.5 Z-Index Layer Map\nPrevent modal\u002Foverlay collisions by strictly adhering to this map:\n\n| Layer | Z-Index | Element |\n|---|---|---|\n| Grid background | `0` | `::before` pseudo on theme classes |\n| Hero content | `1` | `z-1` class on hero main content |\n| Hero prev\u002Fnext buttons | `2` | `z-2` on navigation arrows |\n| Skip-to-content link | `20` | `z-20` |\n| Sticky navigation | `30` | `z-30` on header |\n| Mobile backdrop | `35` | `z-35` |\n| Mobile drawer | `40` | `z-40` on aside |\n| Machine overlay | `50` | `z-50` on dialog |\n| Grain overlay | `9999` | `z-[9999]` on grain div (must always be on top, `pointer-events: none`) |\n\n---\n\n## 4. Component Architecture & Logic Patterns\n\n### 4.1 File Organization\n```text\nsrc\u002F\n├── App.tsx                    # Thin orchestrator, state lifted here\n├── main.tsx                   # React entry point with StrictMode\n├── components\u002F\n│   ├── Navigation.tsx         # Sticky nav + mobile drawer + MX toggle\n│   ├── HeroKinetic.tsx        # Viewport-scaled hero with pointer parallax\n│   ├── AboutFlow.tsx          # Asymmetric editorial about section\n│   ├── BentoGrid.tsx          # Portfolio gateway grid\n│   ├── BentoTile.tsx          # Individual project tile with category texture\n│   ├── ArchiveSpread.tsx      # Collection detail + item detail views\n│   ├── ContactSection.tsx     # Contact + social links\n│   ├── ContentBody.tsx        # Poem\u002Fprose body renderer\n│   ├── GrainOverlay.tsx       # Fixed noise overlay\n│   ├── MachineOverlay.tsx     # Terminal-style data overlay (MX)\n│   ├── BrandMark.tsx          # SVG brand mark\n│   ├── SocialIcon.tsx         # Inline SVG social icons\n│   └── ThemeToggle.tsx        # Day\u002Fnightqal toggle button\n├── hooks\u002F\n│   ├── useWeightedScroll.ts   # Scroll velocity -> font-weight mapping\n│   ├── useRouteHash.ts        # Hash-based routing\n│   └── useReducedMotion.ts    # prefers-reduced-motion hook\n├── lib\u002F\n│   ├── types.ts               # All TypeScript interfaces\n│   ├── content.ts             # import.meta.glob ingestion + parsing\n│   └── data.ts                # Static data, collection definitions, builders\n├── styles\u002F\n│   └── index.css              # Tailwind + @theme + base + animations + grain\n└── content\u002F                   # File-system content (not in src\u002F build)\n```\n\n### 4.2 The \"Thin Orchestrator\" Pattern (`App.tsx`)\n`App.tsx` is the single source of truth for all application state. It lifts state up and passes it down via props. No context providers, no state management libraries. Max prop drilling depth is 2 (e.g., App → Navigation → ThemeToggle). If you find yourself passing a prop through 3+ layers, lift state closer or restructure.\n- State owned: `activeHeroIndex`, `isNightMode`, `isMenuOpen`, `isMachineOpen`, `routeHash`.\n- Conditional rendering: `{activeCollection ? \u003CArchiveSpread ... \u002F> : \u003CHomePageSections \u002F>}`\n\n### 4.3 Detailed Component Logic Patterns\n- **`HeroKinetic`**: Uses pointer parallax (`onMouseMove` → `--slide-x`\u002F`--slide-y` CSS vars). Auto-rotates slides every 10s. Injects `--slide-accent` for dynamic category coloring.\n- **`AboutFlow`**: \"Stable Height Swap\" pattern. Uses a hidden sizer div to prevent layout shift during tab\u002Fcontent swaps. Applies 900ms calm fade transitions (`transition-opacity duration-900 ease-out`).\n- **`BentoGrid` \u002F `BentoTile`**: Maps category to texture (mono for tech\u002Fcode, serif for art\u002Fpoetry). Uses accent color injection via inline CSS vars or Tailwind arbitrary properties.\n- **`ArchiveSpread`**: Dual-view router. Switches between collection grid and item detail based on `hash` path. Shares a persistent header.\n- **`ContentBody`**: Category-aware rendering. Splits `\u003Cpre>` for poetry, wraps prose in `\u003Cp>` tags, handles markdown parsing safely.\n- **ClassName Concatenation Rule**: ALWAYS use template literals. Never string concatenation.\n  ```tsx\n  \u002F\u002F BAD\n  className={\"base \" + (isActive ? \"active\" : \"inactive\")}\n  \u002F\u002F GOOD\n  className={`base ${isActive ? 'active' : 'inactive'}`}\n  ```\n\n---\n\n## 5. Data & Content Architecture\n\n### 5.1 The Definitive `import.meta.glob` Pattern\n**CRITICAL:** `import.meta.glob` paths are relative to the **source file that calls it**, NOT the project root. Since `content.ts` lives in `src\u002Flib\u002F`, paths **MUST** start with `..\u002Fcontent\u002F` (pointing to `src\u002Fcontent\u002F`). Using `.\u002Fcontent\u002F` is a fatal error that results in empty content arrays.\n\n```typescript\n\u002F\u002F CORRECT (in src\u002Flib\u002Fcontent.ts)\nconst portraitImages = import.meta.glob(\n  ['..\u002Fcontent\u002Fportrait\u002F*.{jpg,jpeg,png,webp,avif}', '..\u002Fcontent\u002Fportrait\u002F**\u002F*.{jpg,jpeg,png,webp,avif}'],\n  { eager: true, import: 'default', query: '?url' }\n) as Record\u003Cstring, string>;\n\nconst portfolioImages = import.meta.glob(\n  '..\u002Fcontent\u002Fportfolio\u002F**\u002F*.{jpg,jpeg,png,webp,avif}',\n  { eager: true, import: 'default', query: '?url' }\n) as Record\u003Cstring, string>;\n\n\u002F\u002F Portfolio & Collection markdown\u002Ftext files\nconst portfolioTextFiles = import.meta.glob(\n  '..\u002Fcontent\u002Fportfolio\u002F**\u002F*.{md,txt}',\n  { eager: true, import: 'default', query: '?raw' }\n) as Record\u003Cstring, string>;\n\nconst collectionTextFiles = import.meta.glob(\n  '..\u002Fcontent\u002Fcollections\u002F**\u002F*.{md,txt}',\n  { eager: true, import: 'default', query: '?raw' }\n) as Record\u003Cstring, string>;\n\n\u002F\u002F Collection documents\u002FPDFs\nconst collectionDocuments = import.meta.glob(\n  '..\u002Fcontent\u002Fcollections\u002F**\u002F*.{pdf,docx}',\n  { eager: true, import: 'default', query: '?url' }\n) as Record\u003Cstring, string>;\n```\n\n### 5.2 Directory Structure & Sibling Resolution\n```text\nsrc\u002Fcontent\u002F\n├── portrait\u002F          # Hero slide photos\n├── portfolio\u002F         # Project markdown + sibling images (project.md + project.jpg)\n└── collections\u002F       # Archive items (markdown + images + PDFs)\n```\n**Rule:** If a markdown file and an image share the same folder and base filename, they are \"siblings\" and the image is automatically associated as the visual. Path manipulation utilities in `lib\u002Fcontent.ts` handle this matching.\n\n### 5.3 Frontmatter Parsing & Guide Filtering\n- Lightweight YAML-like parser extracts `title`, `category`, `accent`, `status`, `description`, `link`, etc.\n- **Guide File Filtering:** `PUT_*_HERE.md` files are explicitly excluded from production data using `isCollectionGuideFile()` logic to prevent placeholder content from rendering.\n- **Eager Loading Rationale:** `eager: true` is correct for this portfolio (~20 files, ~4MB images). For >500 items, switch to `{ eager: false }` and implement on-demand loading.\n\n---\n\n## 6. Custom Hooks (Implementation Patterns)\n\n### 6.1 SSR Guard Mandate\nALL hooks interacting with `window`, `document`, or `matchMedia` MUST include:\n```typescript\nconst isClient = typeof window !== 'undefined';\nif (!isClient) return defaultValue;\n```\n\n### 6.2 `useRouteHash`\n- Listens to `hashchange` and `load` events.\n- Parses `#collection\u002Fitem` or `#portfolio\u002Fslug`.\n- Returns `{ route, params }` object.\n- Cleanup: `window.removeEventListener('hashchange', handler)`.\n\n### 6.3 `useWeightedScroll`\n- Maps scroll velocity to `font-weight` (200–950) using `requestAnimationFrame` throttling.\n- Uses a state-hack (`_timestamp`, `_scrollY`) to calculate delta without triggering re-renders on every tick.\n- Returns static `950` if `prefers-reduced-motion` is true.\n- Cleanup: `cancelAnimationFrame(id)`.\n\n### 6.4 `useReducedMotion`\n- Double-layer defense:\n  1. **React Hook:** `window.matchMedia('(prefers-reduced-motion: reduce)').matches`\n  2. **Global CSS:** `@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }`\n- MUST gate ALL motion behind this hook.\n\n---\n\n## 7. Accessibility (WCAG AAA)\n\n### 7.1 Mandatory Checks\n- [ ] **Meaningful Alt Text:** All content images MUST have meaningful `alt` text (e.g., `alt={item.title}`, `alt=\"Nicholas Yun\"`).\n- [ ] **No Empty Alt for Content:** `alt=\"\"` is strictly reserved for purely decorative UI elements (e.g., `GrainOverlay`, `BrandMark`).\n- [ ] **Motion Gating:** All animations check `useReducedMotion()`. Global CSS disables ALL transitions.\n- [ ] **Focus Visible:** All interactive elements have visible focus indicators: `outline: 3px solid rgba(36, 87, 255, 0.35); outline-offset: 3px;`.\n- [ ] **Skip Link:** A \"Skip to main content\" link is present (`App.tsx:88`) using off-screen `-translate-y-[160%]` to `focus:translate-y-0`.\n- [ ] **ARIA Patterns:**\n  - Mobile drawer: `aria-expanded`, `aria-controls`\n  - Hero dots: `aria-pressed=\"true\u002Ffalse\"`, `role=\"tab\"`\n  - Machine overlay: `role=\"dialog\"`, `aria-modal=\"true\"`\n  - Live regions: `aria-live=\"polite\"` for dynamic content swaps\n- [ ] **High Contrast:** Maintained in both `.theme-night` and `.theme-day`.\n\n---\n\n## 8. Complete TypeScript Interface Reference\n\nAll interfaces live in `src\u002Flib\u002Ftypes.ts`. Key design decisions: `Project` and `CollectionItem` share fields via `extends`. Optional fields use `?`. `SocialLink.icon` uses a union type (not `enum`) due to `erasableSyntaxOnly`.\n\n```typescript\nexport interface HeroSlide {\n  label: string;\n  portraitKey: string;\n  headline: string;\n  subtitle: string;\n  artifactTitle: string;\n  artifactMeta: string;\n  signature: string;\n  accent: string;\n  secondaryAccent: string;\n  tags: string[];\n}\n\nexport interface AboutPillar {\n  title: string;\n  paragraphs: string[]; \u002F\u002F CORRECT: body would be 'body: string[]'\n}\n\nexport interface Project {\n  title: string;\n  category: string;\n  accent: string;\n  medium?: string;\n  status: string;\n  description: string;\n  link?: string;\n  linkLabel: string;\n  slug: string;\n  image?: string;\n  body?: string;\n}\n\nexport interface CollectionItem extends Project {\n  collectionSlug: string;\n  document?: string;\n}\n\nexport interface Collection {\n  slug: string;\n  title: string;\n  category: string;\n  accent: string;\n  description: string;\n  status: string;\n}\n\nexport interface ArchiveRoute {\n  collectionSlug: string;\n  itemSlug: string | null;\n}\n\nexport interface SocialLink {\n  label: string;\n  icon: 'mail' | 'linkedin' | 'instagram' | 'github';\n  href: string;\n  description: string;\n}\n\nexport interface MachineOverlayData {\n  buildVersion: string;\n  route: string;\n  collections: Record\u003Cstring, number>;\n  activeData: unknown; \u002F\u002F Not 'any'\n}\n```\n\n**Handling Indexed Access:** Because `noUncheckedIndexedAccess: true`, always handle `T | undefined`:\n```typescript\n\u002F\u002F SAFE\nconst slide = slides[index];\nif (slide) { console.log(slide.title); }\n\n\u002F\u002F SAFE (if bounds checked)\nif (index \u003C slides.length) { console.log(slides[index]!.title); }\n```\n\n---\n\n## 9. Anti-Patterns & Common Bugs\n\n### Bug 1: The \"Rounding Leak\"\n- **Symptom:** Components contain `rounded-md`, `rounded-lg`, or `rounded-sm`, violating the brutalist aesthetic.\n- **Fix:** `sed -i 's\u002Frounded-full\u002Frounded-none\u002Fg; s\u002Frounded-md\u002Frounded-none\u002Fg; s\u002Frounded-lg\u002Frounded-none\u002Fg; s\u002Frounded-sm\u002Frounded-none\u002Fg' src\u002Fcomponents\u002F*.tsx`\n- **Verify:** `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-sm\" src\u002F` returns empty.\n**Note on Line 25 of `MachineOverlay.tsx`:** This file may contain `rounded` (without a size suffix). Replace with `rounded-none` as well.\n\n### Bug 2: Incorrect `import.meta.glob` Paths\n- **Symptom:** All content images fail to load; browser shows \"NY\" placeholder text.\n- **Root Cause:** Paths were `.\u002Fcontent\u002F...` (pointing to non-existent `src\u002Flib\u002Fcontent\u002F`).\n- **Fix:** Update all glob paths in `content.ts` to `..\u002Fcontent\u002F...`.\n\n### Bug 3: Unstable React Keys\n- **Symptom:** React warnings about duplicate keys or unexpected re-rendering.\n- **Root Cause:** Using paragraph strings or dynamic content as `key` props.\n- **Fix:** Use a stable, unique identifier. If no ID exists, use a stable hash or the array index as a last resort.\n  ```tsx\n  \u002F\u002F WRONG: \u003Cp key={paragraph}>{paragraph}\u003C\u002Fp>\n  \u002F\u002F CORRECT: \u003Cp key={`para-${index}`}>{paragraph}\u003C\u002Fp>\n  ```\n\n### Bug 4: Light Theme Override Specificity Failures\n- **Symptom:** Light theme styles don't apply.\n- **Root Cause:** Using `[.theme-day &]` or missing `&`.\n- **Fix:** Use `[.theme-day_&]:` arbitrary variant.\n\n### Bug 5: Body Scroll Lock Cleanup Failures\n- **Symptom:** Page remains unscrollable after closing the mobile menu.\n- **Fix:** Ensure `useEffect` cleanup always resets: `return () => { document.body.style.overflow = ''; }`\n\n### Bug 6: `erasableSyntaxOnly` Rejecting Enums\n- **Symptom:** TS build fails with \"This syntax is not allowed when 'erasableSyntaxOnly' is enabled\".\n- **Fix:** Replace `enum` with union types (e.g., `type Icon = 'mail' | 'linkedin';`).\n\n---\n\n## 10. Debugging Guide\n\n| Symptom | Diagnosis | Step-by-Step Fix |\n|---|---|---|\n| **Broken Images \u002F \"NY\" Fallback** | Glob path mismatch or missing asset. | 1. Network tab: Check 404.\u003Cbr>2. `content.ts`: Add `console.log('Portrait:', Object.keys(portraitImages));`\u003Cbr>3. Verify paths start with `..\u002Fcontent\u002F`. |\n| **TypeScript: \"Object is possibly 'undefined'\"** | `noUncheckedIndexedAccess` violation. | 1. Add explicit `if (arr[index])` check.\u003Cbr>2. Use optional chaining `arr[index]?.prop`.\u003Cbr>3. Assert with `!` only if bounds-checked. |\n| **Build Failures (GitHub Pages)** | Incorrect base path or plugin order. | 1. Ensure `vite.config.ts` has `base: '.\u002F'`.\u003Cbr>2. Verify `@tailwindcss\u002Fvite` is in `plugins`.\u003Cbr>3. Run `pnpm typecheck` first to isolate TS vs Build errors. |\n| **Content Not Appearing** | Guide file leak or frontmatter parse fail. | 1. Verify `isCollectionGuideFile` filters `PUT_*_HERE.md`.\u003Cbr>2. Check frontmatter syntax (no trailing commas, correct YAML-like structure). |\n| **Theme Toggle Not Working** | Root class not applied or CSS specificity clash. | 1. Check `document.documentElement.classList.toggle('theme-day')`.\u003Cbr>2. Verify `[.theme-day_&]:` syntax in CSS.\u003Cbr>3. Clear browser cache; Tailwind JIT may need hard refresh. |\n| **Mobile Menu Lockup** | Scroll lock not cleaned up or drawer transform off. | 1. Check `document.body.style.overflow` in `useEffect` cleanup.\u003Cbr>2. Verify drawer uses `translate-x-[105%]` (closed) vs `translate-x-0` (open). |\n\n---\n\n## 11. Pre-Ship Checklist & Verification\n\nRun EVERY item before claiming completion. No exceptions.\n\n### Build Verification\n```bash\n# 1. Type Safety\npnpm typecheck\n\n# 2. Production Build\npnpm build\n\n# 3. Asset Verification\nls -la dist\u002Fassets\u002F\n```\n\n### Responsive Breakpoint Behavior Table\n| Viewport | Expected Behavior |\n|---|---|\n| `360px` | Single column, compressed hero, mobile nav active |\n| `430px` | Standard mobile, bento grid stacks vertically |\n| `620px` | Tablet-ish, slight grid expansion |\n| `760px` | **Major Mobile Breakpoint** — dual-column bento, nav adapts |\n| `900px` | Tablet landscape, full editorial spacing returns |\n| `1200px` | Desktop baseline, 3-4 column grids, parallax enabled |\n| `1536px` | Max container width, extreme whitespace utilization |\n\n### Functional & Accessibility Checklist\n- [ ] `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-sm\" src\u002F` returns **empty**.\n- [ ] No purple gradients or generic card grids anywhere.\n- [ ] All `\u003Cimg>` tags have meaningful `alt` text (not `alt=\"\"` unless truly decorative).\n- [ ] All animations check `useReducedMotion()`.\n- [ ] `pnpm typecheck` passes with zero errors.\n- [ ] No `any`, `enum`, or `namespace` keywords in the codebase.\n- [ ] All React `key` props are stable and unique.\n- [ ] `import.meta.glob` paths in `content.ts` are correct (`..\u002Fcontent\u002F...`).\n- [ ] Mobile drawer scroll lock cleans up properly.\n- [ ] Theme toggle persists or respects `prefers-color-scheme` fallback.\n- [ ] Skip-to-content link focuses main content on activation.\n- [ ] Focus visible states are present on all interactive elements.\n\n---\n\n## 12. Summary: The Non-Negotiables\n\n| Domain | Absolute Rule | Verification Command |\n|---|---|---|\n| **Aesthetic** | Zero border radius. No template UI. Brutalist + Editorial only. | `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-sm\" src\u002F` (must be empty) |\n| **Grid** | All spacing multiples of `28px`. Visible background grid. | Visual QA + CSS inspection |\n| **Accessibility** | WCAG AAA. Meaningful `alt` text. Motion gating. Skip link. | `grep 'alt=\"\"' src\u002F` (must be 0 for content) |\n| **TypeScript** | `erasableSyntaxOnly`, `noUncheckedIndexedAccess`. Union types > enums. | `pnpm typecheck` |\n| **Content** | `import.meta.glob` uses `..\u002Fcontent\u002F...`. Eager loading for current scale. | `console.log(Object.keys(...))` |\n| **Typography** | Cormorant (Headlines), Plex Mono (Utility), Inter (Body). | Visual inspection |\n| **Installation** | Bespoke only. No external UI libs. State lifted to `App.tsx`. | `package.json` scan + `App.tsx` review |\n\n*Built from the ground up to be a digital installation, not a generic portfolio. Every line of code serves the \"Engineered Soul\" thesis. This document is the constitution. Deviations are regressions.*\n","# The Engineered Soul — Portfolio Master Skill (v3.0.0)\n\n**One-Shot Prevention:** This skill was distilled from a real build cycle that migrated a 1265-line JSX + 4411-line CSS monolith into a clean, component-driven TypeScript + Tailwind v4 installation. It encodes both the deep architectural thinking (the \"why\") and the practical remediation lessons (the \"what went wrong and how we fixed it\"). Skipping any section creates rework, visual regression, or accessibility failure. This document is the absolute single source of truth.\n\n---\n\n## 1. Project Identity & Non-Negotiables\n\n### The Dual-Thesis\nThe aesthetic is a deliberate collision of two extremes. Every design decision must answer: *\"Does this serve the tension between the mathematical and the emotional, or does it safely retreat to the middle?\"*\n- **Tactile Brutalism (The Machine):** Visible structure, 1px borders, `0px` border-radius, mono utility type, high contrast, no decoration without function, raw terminal aesthetics.\n- **High-End Editorial (The Soul):** Cormorant Garamond serif headlines, extreme whitespace, cinematic motion, asymmetric spreads, human textures, kinetic typography.\n\n### The \"AI Slop\" Rejection List (Strictly Forbidden)\n- Purple gradients on white backgrounds or safe neutral palettes.\n- Safe Inter\u002FRoboto-only font pairings without distinct typographical hierarchy.\n- Predictable card grids, hero sections, Bootstrap-like aesthetics, or template UI.\n- **Any border radius other than `0px`** (See Section 3.3).\n- Generic stock photography, placeholder aesthetics, or uncurated layouts.\n- External UI libraries (No shadcn\u002Fui, No Radix, No Framer Motion, No React Router). All components are bespoke.\n\n### Mandatory Six-Phase Workflow\nEvery change to this codebase MUST follow:\n1. **ANALYZE**: Deep requirement mining; trace component tree, data flow, and CSS cascade. Never assume.\n2. **PLAN**: Write down every file change before touching code.\n3. **VALIDATE**: Present the plan for explicit user approval before implementing.\n4. **IMPLEMENT**: Write code following the patterns in this document. Touch only what is necessary.\n5. **VERIFY**: Run `pnpm typecheck && pnpm build` after every change. Verify visually and functionally.\n6. **DELIVER**: Confirm zero errors, zero warnings, and provide complete handoff documentation.\nNo phase can be skipped. No code is written without explicit user confirmation.\n\n---\n\n## 2. Tech Stack & Environment\n\n| Layer | Technology | Version | Purpose |\n|---|---|---|---|\n| Framework | React | ^19.0.0 | Concurrent rendering, StrictMode |\n| Language | TypeScript | ^6.0.0 | Strict typing, erasable syntax only |\n| Build Tool | Vite | ^6.3.0 | Zero-config HMR, `import.meta.glob` |\n| Styling | Tailwind CSS | ^4.1.0 | CSS-first `@theme`, no JS config |\n| Package Manager | pnpm | >= 9 | Workspace support, strict resolution |\n| Fonts | Google Fonts | — | Cormorant Garamond, IBM Plex Mono, Inter |\n\n### Critical TypeScript Settings (`tsconfig.json`)\n- `strict: true`\n- `erasableSyntaxOnly: true` — **NON-NEGOTIABLE**. Rejects `enum`, `namespace`, and parameter properties. Always use union types (e.g., `icon: 'mail' | 'linkedin' | 'github'`).\n- `noUncheckedIndexedAccess: true` — Makes array\u002Fobject index access return `T | undefined`. You must handle the `undefined` case explicitly, or use a non-null assertion (`!`) *only* when logically guaranteed by bounds checking (e.g., `if (index \u003C arr.length) arr[index]!`).\n- Path alias: `@\u002F*` → `.\u002Fsrc\u002F*`\n\n### Vite Configuration (`vite.config.ts`)\n- `base: '.\u002F'` — Required for GitHub Pages relative path resolution.\n- `@tailwindcss\u002Fvite` plugin must be present in `plugins: []`.\n- Do not inject legacy PostCSS or `tailwind.config.js`. All tokens are in `src\u002Fstyles\u002Findex.css`.\n\n---\n\n## 3. The Design System (Complete Code-First)\n\nThere is NO `tailwind.config.js`. All design tokens live in `src\u002Fstyles\u002Findex.css` inside `@theme`. Do not deviate.\n\n### 3.1 Full Tailwind v4 `@theme` Block\n```css\n@import \"tailwindcss\";\n\n@theme {\n  \u002F* Grid Unit — the mathematical backbone *\u002F\n  --unit: 28px;\n  --spacing-grid: 28px;\n  --spacing-section: 104px;\n\n  \u002F* Colors — Dark Theme (default) *\u002F\n  --color-ink: #07080d;\n  --color-ink-light: #15151b;\n  --color-surface: #11131d;\n  --color-surface-elevated: #1a1c2e;\n  --color-text: #ffffff;\n  --color-text-secondary: rgba(255, 255, 255, 0.68);\n  --color-text-muted: rgba(255, 255, 255, 0.52);\n  --color-text-faint: rgba(255, 255, 255, 0.38);\n  --color-border: rgba(255, 255, 255, 0.13);\n  --color-border-strong: rgba(255, 255, 255, 0.24);\n  --color-border-accent: rgba(255, 255, 255, 0.18);\n\n  \u002F* Colors — Light Theme *\u002F\n  --color-day-bg: #fff8e8;\n  --color-day-surface: #ffffff;\n  --color-day-text: #15151b;\n  --color-day-text-secondary: rgba(21, 21, 27, 0.64);\n  --color-day-border: rgba(21, 21, 27, 0.1);\n  --color-day-border-strong: rgba(21, 21, 27, 0.18);\n\n  \u002F* Accent Colors — One per creative category *\u002F\n  --color-accent-code: #2457ff;\n  --color-accent-design: #ff5c35;\n  --color-accent-art: #00a77f;\n  --color-accent-photo: #f2b705;\n  --color-accent-poetry: #8f55ff;\n  --color-accent-story: #e5488b;\n  --color-accent-experiments: #16a3b8;\n\n  \u002F* Fonts — Three-tier hierarchy *\u002F\n  --font-editorial: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;\n  --font-utility: 'IBM Plex Mono', 'JetBrains Mono', monospace;\n  --font-body: 'Inter', system-ui, -apple-system, sans-serif;\n\n  \u002F* Border Radius — Brutalist defaults *\u002F\n  --radius-brutal: 0px;\n}\n```\n\n### 3.2 The 28px Grid\nEvery layout must align with the 28px rhythm. This is defined via a visible background grid:\n```css\n.theme-night::before, .theme-day::before {\n  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;\n  background-image: \n    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),\n    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);\n  background-size: 28px 28px;\n}\n```\n**Rule:** All padding, margins, and grid gaps should be multiples of 28px (or exact fractions like `14px`, `7px`) unless there is a specific micro-justification.\n\n### 3.3 Brutalist Borders (Absolute `rounded-none` Mandate)\n**GROUND TRUTH:** Every single element must use `rounded-none`. This includes structural containers, interactive elements (buttons, badges), images, inputs, and overlays.\n- **Verification:** `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-xl\\|rounded-sm\" src\u002F` must return **zero matches**. Any documentation suggesting exceptions is obsolete.\n- **Known Deviation:** Legacy code may contain `rounded-sm` on `MachineOverlay.tsx` lines 48, 58, and `rounded` on line 25. **Purge these. Replace with `rounded-none`.**\n\n### 3.4 Light Theme Override Specificity\nLight theme overrides must use Tailwind v4's arbitrary variant syntax with `&` to ensure specificity.\n```css\n\u002F* CORRECT *\u002F\n[.theme-day_&]:bg-day-bg\n[.theme-day_&]:text-day-text\n\n\u002F* WRONG — missing &, uses space instead of underscore *\u002F\n.theme-day & \n[.theme-day &] \n```\n\n### 3.5 Z-Index Layer Map\nPrevent modal\u002Foverlay collisions by strictly adhering to this map:\n\n| Layer | Z-Index | Element |\n|---|---|---|\n| Grid background | `0` | `::before` pseudo on theme classes |\n| Hero content | `1` | `z-1` class on hero main content |\n| Hero prev\u002Fnext buttons | `2` | `z-2` on navigation arrows |\n| Skip-to-content link | `20` | `z-20` |\n| Sticky navigation | `30` | `z-30` on header |\n| Mobile backdrop | `35` | `z-35` |\n| Mobile drawer | `40` | `z-40` on aside |\n| Machine overlay | `50` | `z-50` on dialog |\n| Grain overlay | `9999` | `z-[9999]` on grain div (must always be on top, `pointer-events: none`) |\n\n---\n\n## 4. Component Architecture & Logic Patterns\n\n### 4.1 File Organization\n```text\nsrc\u002F\n├── App.tsx                    # Thin orchestrator, state lifted here\n├── main.tsx                   # React entry point with StrictMode\n├── components\u002F\n│   ├── Navigation.tsx         # Sticky nav + mobile drawer + MX toggle\n│   ├── HeroKinetic.tsx        # Viewport-scaled hero with pointer parallax\n│   ├── AboutFlow.tsx          # Asymmetric editorial about section\n│   ├── BentoGrid.tsx          # Portfolio gateway grid\n│   ├── BentoTile.tsx          # Individual project tile with category texture\n│   ├── ArchiveSpread.tsx      # Collection detail + item detail views\n│   ├── ContactSection.tsx     # Contact + social links\n│   ├── ContentBody.tsx        # Poem\u002Fprose body renderer\n│   ├── GrainOverlay.tsx       # Fixed noise overlay\n│   ├── MachineOverlay.tsx     # Terminal-style data overlay (MX)\n│   ├── BrandMark.tsx          # SVG brand mark\n│   ├── SocialIcon.tsx         # Inline SVG social icons\n│   └── ThemeToggle.tsx        # Day\u002Fnightqal toggle button\n├── hooks\u002F\n│   ├── useWeightedScroll.ts   # Scroll velocity -> font-weight mapping\n│   ├── useRouteHash.ts        # Hash-based routing\n│   └── useReducedMotion.ts    # prefers-reduced-motion hook\n├── lib\u002F\n│   ├── types.ts               # All TypeScript interfaces\n│   ├── content.ts             # import.meta.glob ingestion + parsing\n│   └── data.ts                # Static data, collection definitions, builders\n├── styles\u002F\n│   └── index.css              # Tailwind + @theme + base + animations + grain\n└── content\u002F                   # File-system content (not in src\u002F build)\n```\n\n### 4.2 The \"Thin Orchestrator\" Pattern (`App.tsx`)\n`App.tsx` is the single source of truth for all application state. It lifts state up and passes it down via props. No context providers, no state management libraries. Max prop drilling depth is 2 (e.g., App → Navigation → ThemeToggle). If you find yourself passing a prop through 3+ layers, lift state closer or restructure.\n- State owned: `activeHeroIndex`, `isNightMode`, `isMenuOpen`, `isMachineOpen`, `routeHash`.\n- Conditional rendering: `{activeCollection ? \u003CArchiveSpread ... \u002F> : \u003CHomePageSections \u002F>}`\n\n### 4.3 Detailed Component Logic Patterns\n- **`HeroKinetic`**: Uses pointer parallax (`onMouseMove` → `--slide-x`\u002F`--slide-y` CSS vars). Auto-rotates slides every 10s. Injects `--slide-accent` for dynamic category coloring.\n- **`AboutFlow`**: \"Stable Height Swap\" pattern. Uses a hidden sizer div to prevent layout shift during tab\u002Fcontent swaps. Applies 900ms calm fade transitions (`transition-opacity duration-900 ease-out`).\n- **`BentoGrid` \u002F `BentoTile`**: Maps category to texture (mono for tech\u002Fcode, serif for art\u002Fpoetry). Uses accent color injection via inline CSS vars or Tailwind arbitrary properties.\n- **`ArchiveSpread`**: Dual-view router. Switches between collection grid and item detail based on `hash` path. Shares a persistent header.\n- **`ContentBody`**: Category-aware rendering. Splits `\u003Cpre>` for poetry, wraps prose in `\u003Cp>` tags, handles markdown parsing safely.\n- **ClassName Concatenation Rule**: ALWAYS use template literals. Never string concatenation.\n  ```tsx\n  \u002F\u002F BAD\n  className={\"base \" + (isActive ? \"active\" : \"inactive\")}\n  \u002F\u002F GOOD\n  className={`base ${isActive ? 'active' : 'inactive'}`}\n  ```\n\n---\n\n## 5. Data & Content Architecture\n\n### 5.1 The Definitive `import.meta.glob` Pattern\n**CRITICAL:** `import.meta.glob` paths are relative to the **source file that calls it**, NOT the project root. Since `content.ts` lives in `src\u002Flib\u002F`, paths **MUST** start with `..\u002Fcontent\u002F` (pointing to `src\u002Fcontent\u002F`). Using `.\u002Fcontent\u002F` is a fatal error that results in empty content arrays.\n\n```typescript\n\u002F\u002F CORRECT (in src\u002Flib\u002Fcontent.ts)\nconst portraitImages = import.meta.glob(\n  ['..\u002Fcontent\u002Fportrait\u002F*.{jpg,jpeg,png,webp,avif}', '..\u002Fcontent\u002Fportrait\u002F**\u002F*.{jpg,jpeg,png,webp,avif}'],\n  { eager: true, import: 'default', query: '?url' }\n) as Record\u003Cstring, string>;\n\nconst portfolioImages = import.meta.glob(\n  '..\u002Fcontent\u002Fportfolio\u002F**\u002F*.{jpg,jpeg,png,webp,avif}',\n  { eager: true, import: 'default', query: '?url' }\n) as Record\u003Cstring, string>;\n\n\u002F\u002F Portfolio & Collection markdown\u002Ftext files\nconst portfolioTextFiles = import.meta.glob(\n  '..\u002Fcontent\u002Fportfolio\u002F**\u002F*.{md,txt}',\n  { eager: true, import: 'default', query: '?raw' }\n) as Record\u003Cstring, string>;\n\nconst collectionTextFiles = import.meta.glob(\n  '..\u002Fcontent\u002Fcollections\u002F**\u002F*.{md,txt}',\n  { eager: true, import: 'default', query: '?raw' }\n) as Record\u003Cstring, string>;\n\n\u002F\u002F Collection documents\u002FPDFs\nconst collectionDocuments = import.meta.glob(\n  '..\u002Fcontent\u002Fcollections\u002F**\u002F*.{pdf,docx}',\n  { eager: true, import: 'default', query: '?url' }\n) as Record\u003Cstring, string>;\n```\n\n### 5.2 Directory Structure & Sibling Resolution\n```text\nsrc\u002Fcontent\u002F\n├── portrait\u002F          # Hero slide photos\n├── portfolio\u002F         # Project markdown + sibling images (project.md + project.jpg)\n└── collections\u002F       # Archive items (markdown + images + PDFs)\n```\n**Rule:** If a markdown file and an image share the same folder and base filename, they are \"siblings\" and the image is automatically associated as the visual. Path manipulation utilities in `lib\u002Fcontent.ts` handle this matching.\n\n### 5.3 Frontmatter Parsing & Guide Filtering\n- Lightweight YAML-like parser extracts `title`, `category`, `accent`, `status`, `description`, `link`, etc.\n- **Guide File Filtering:** `PUT_*_HERE.md` files are explicitly excluded from production data using `isCollectionGuideFile()` logic to prevent placeholder content from rendering.\n- **Eager Loading Rationale:** `eager: true` is correct for this portfolio (~20 files, ~4MB images). For >500 items, switch to `{ eager: false }` and implement on-demand loading.\n\n---\n\n## 6. Custom Hooks (Implementation Patterns)\n\n### 6.1 SSR Guard Mandate\nALL hooks interacting with `window`, `document`, or `matchMedia` MUST include:\n```typescript\nconst isClient = typeof window !== 'undefined';\nif (!isClient) return defaultValue;\n```\n\n### 6.2 `useRouteHash`\n- Listens to `hashchange` and `load` events.\n- Parses `#collection\u002Fitem` or `#portfolio\u002Fslug`.\n- Returns `{ route, params }` object.\n- Cleanup: `window.removeEventListener('hashchange', handler)`.\n\n### 6.3 `useWeightedScroll`\n- Maps scroll velocity to `font-weight` (200–950) using `requestAnimationFrame` throttling.\n- Uses a state-hack (`_timestamp`, `_scrollY`) to calculate delta without triggering re-renders on every tick.\n- Returns static `950` if `prefers-reduced-motion` is true.\n- Cleanup: `cancelAnimationFrame(id)`.\n\n### 6.4 `useReducedMotion`\n- Double-layer defense:\n  1. **React Hook:** `window.matchMedia('(prefers-reduced-motion: reduce)').matches`\n  2. **Global CSS:** `@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }`\n- MUST gate ALL motion behind this hook.\n\n---\n\n## 7. Accessibility (WCAG AAA)\n\n### 7.1 Mandatory Checks\n- [ ] **Meaningful Alt Text:** All content images MUST have meaningful `alt` text (e.g., `alt={item.title}`, `alt=\"Nicholas Yun\"`).\n- [ ] **No Empty Alt for Content:** `alt=\"\"` is strictly reserved for purely decorative UI elements (e.g., `GrainOverlay`, `BrandMark`).\n- [ ] **Motion Gating:** All animations check `useReducedMotion()`. Global CSS disables ALL transitions.\n- [ ] **Focus Visible:** All interactive elements have visible focus indicators: `outline: 3px solid rgba(36, 87, 255, 0.35); outline-offset: 3px;`.\n- [ ] **Skip Link:** A \"Skip to main content\" link is present (`App.tsx:88`) using off-screen `-translate-y-[160%]` to `focus:translate-y-0`.\n- [ ] **ARIA Patterns:**\n  - Mobile drawer: `aria-expanded`, `aria-controls`\n  - Hero dots: `aria-pressed=\"true\u002Ffalse\"`, `role=\"tab\"`\n  - Machine overlay: `role=\"dialog\"`, `aria-modal=\"true\"`\n  - Live regions: `aria-live=\"polite\"` for dynamic content swaps\n- [ ] **High Contrast:** Maintained in both `.theme-night` and `.theme-day`.\n\n---\n\n## 8. Complete TypeScript Interface Reference\n\nAll interfaces live in `src\u002Flib\u002Ftypes.ts`. Key design decisions: `Project` and `CollectionItem` share fields via `extends`. Optional fields use `?`. `SocialLink.icon` uses a union type (not `enum`) due to `erasableSyntaxOnly`.\n\n```typescript\nexport interface HeroSlide {\n  label: string;\n  portraitKey: string;\n  headline: string;\n  subtitle: string;\n  artifactTitle: string;\n  artifactMeta: string;\n  signature: string;\n  accent: string;\n  secondaryAccent: string;\n  tags: string[];\n}\n\nexport interface AboutPillar {\n  title: string;\n  paragraphs: string[]; \u002F\u002F CORRECT: body would be 'body: string[]'\n}\n\nexport interface Project {\n  title: string;\n  category: string;\n  accent: string;\n  medium?: string;\n  status: string;\n  description: string;\n  link?: string;\n  linkLabel: string;\n  slug: string;\n  image?: string;\n  body?: string;\n}\n\nexport interface CollectionItem extends Project {\n  collectionSlug: string;\n  document?: string;\n}\n\nexport interface Collection {\n  slug: string;\n  title: string;\n  category: string;\n  accent: string;\n  description: string;\n  status: string;\n}\n\nexport interface ArchiveRoute {\n  collectionSlug: string;\n  itemSlug: string | null;\n}\n\nexport interface SocialLink {\n  label: string;\n  icon: 'mail' | 'linkedin' | 'instagram' | 'github';\n  href: string;\n  description: string;\n}\n\nexport interface MachineOverlayData {\n  buildVersion: string;\n  route: string;\n  collections: Record\u003Cstring, number>;\n  activeData: unknown; \u002F\u002F Not 'any'\n}\n```\n\n**Handling Indexed Access:** Because `noUncheckedIndexedAccess: true`, always handle `T | undefined`:\n```typescript\n\u002F\u002F SAFE\nconst slide = slides[index];\nif (slide) { console.log(slide.title); }\n\n\u002F\u002F SAFE (if bounds checked)\nif (index \u003C slides.length) { console.log(slides[index]!.title); }\n```\n\n---\n\n## 9. Anti-Patterns & Common Bugs\n\n### Bug 1: The \"Rounding Leak\"\n- **Symptom:** Components contain `rounded-md`, `rounded-lg`, or `rounded-sm`, violating the brutalist aesthetic.\n- **Fix:** `sed -i 's\u002Frounded-full\u002Frounded-none\u002Fg; s\u002Frounded-md\u002Frounded-none\u002Fg; s\u002Frounded-lg\u002Frounded-none\u002Fg; s\u002Frounded-sm\u002Frounded-none\u002Fg' src\u002Fcomponents\u002F*.tsx`\n- **Verify:** `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-sm\" src\u002F` returns empty.\n**Note on Line 25 of `MachineOverlay.tsx`:** This file may contain `rounded` (without a size suffix). Replace with `rounded-none` as well.\n\n### Bug 2: Incorrect `import.meta.glob` Paths\n- **Symptom:** All content images fail to load; browser shows \"NY\" placeholder text.\n- **Root Cause:** Paths were `.\u002Fcontent\u002F...` (pointing to non-existent `src\u002Flib\u002Fcontent\u002F`).\n- **Fix:** Update all glob paths in `content.ts` to `..\u002Fcontent\u002F...`.\n\n### Bug 3: Unstable React Keys\n- **Symptom:** React warnings about duplicate keys or unexpected re-rendering.\n- **Root Cause:** Using paragraph strings or dynamic content as `key` props.\n- **Fix:** Use a stable, unique identifier. If no ID exists, use a stable hash or the array index as a last resort.\n  ```tsx\n  \u002F\u002F WRONG: \u003Cp key={paragraph}>{paragraph}\u003C\u002Fp>\n  \u002F\u002F CORRECT: \u003Cp key={`para-${index}`}>{paragraph}\u003C\u002Fp>\n  ```\n\n### Bug 4: Light Theme Override Specificity Failures\n- **Symptom:** Light theme styles don't apply.\n- **Root Cause:** Using `[.theme-day &]` or missing `&`.\n- **Fix:** Use `[.theme-day_&]:` arbitrary variant.\n\n### Bug 5: Body Scroll Lock Cleanup Failures\n- **Symptom:** Page remains unscrollable after closing the mobile menu.\n- **Fix:** Ensure `useEffect` cleanup always resets: `return () => { document.body.style.overflow = ''; }`\n\n### Bug 6: `erasableSyntaxOnly` Rejecting Enums\n- **Symptom:** TS build fails with \"This syntax is not allowed when 'erasableSyntaxOnly' is enabled\".\n- **Fix:** Replace `enum` with union types (e.g., `type Icon = 'mail' | 'linkedin';`).\n\n---\n\n## 10. Debugging Guide\n\n| Symptom | Diagnosis | Step-by-Step Fix |\n|---|---|---|\n| **Broken Images \u002F \"NY\" Fallback** | Glob path mismatch or missing asset. | 1. Network tab: Check 404.\u003Cbr>2. `content.ts`: Add `console.log('Portrait:', Object.keys(portraitImages));`\u003Cbr>3. Verify paths start with `..\u002Fcontent\u002F`. |\n| **TypeScript: \"Object is possibly 'undefined'\"** | `noUncheckedIndexedAccess` violation. | 1. Add explicit `if (arr[index])` check.\u003Cbr>2. Use optional chaining `arr[index]?.prop`.\u003Cbr>3. Assert with `!` only if bounds-checked. |\n| **Build Failures (GitHub Pages)** | Incorrect base path or plugin order. | 1. Ensure `vite.config.ts` has `base: '.\u002F'`.\u003Cbr>2. Verify `@tailwindcss\u002Fvite` is in `plugins`.\u003Cbr>3. Run `pnpm typecheck` first to isolate TS vs Build errors. |\n| **Content Not Appearing** | Guide file leak or frontmatter parse fail. | 1. Verify `isCollectionGuideFile` filters `PUT_*_HERE.md`.\u003Cbr>2. Check frontmatter syntax (no trailing commas, correct YAML-like structure). |\n| **Theme Toggle Not Working** | Root class not applied or CSS specificity clash. | 1. Check `document.documentElement.classList.toggle('theme-day')`.\u003Cbr>2. Verify `[.theme-day_&]:` syntax in CSS.\u003Cbr>3. Clear browser cache; Tailwind JIT may need hard refresh. |\n| **Mobile Menu Lockup** | Scroll lock not cleaned up or drawer transform off. | 1. Check `document.body.style.overflow` in `useEffect` cleanup.\u003Cbr>2. Verify drawer uses `translate-x-[105%]` (closed) vs `translate-x-0` (open). |\n\n---\n\n## 11. Pre-Ship Checklist & Verification\n\nRun EVERY item before claiming completion. No exceptions.\n\n### Build Verification\n```bash\n# 1. Type Safety\npnpm typecheck\n\n# 2. Production Build\npnpm build\n\n# 3. Asset Verification\nls -la dist\u002Fassets\u002F\n```\n\n### Responsive Breakpoint Behavior Table\n| Viewport | Expected Behavior |\n|---|---|\n| `360px` | Single column, compressed hero, mobile nav active |\n| `430px` | Standard mobile, bento grid stacks vertically |\n| `620px` | Tablet-ish, slight grid expansion |\n| `760px` | **Major Mobile Breakpoint** — dual-column bento, nav adapts |\n| `900px` | Tablet landscape, full editorial spacing returns |\n| `1200px` | Desktop baseline, 3-4 column grids, parallax enabled |\n| `1536px` | Max container width, extreme whitespace utilization |\n\n### Functional & Accessibility Checklist\n- [ ] `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-sm\" src\u002F` returns **empty**.\n- [ ] No purple gradients or generic card grids anywhere.\n- [ ] All `\u003Cimg>` tags have meaningful `alt` text (not `alt=\"\"` unless truly decorative).\n- [ ] All animations check `useReducedMotion()`.\n- [ ] `pnpm typecheck` passes with zero errors.\n- [ ] No `any`, `enum`, or `namespace` keywords in the codebase.\n- [ ] All React `key` props are stable and unique.\n- [ ] `import.meta.glob` paths in `content.ts` are correct (`..\u002Fcontent\u002F...`).\n- [ ] Mobile drawer scroll lock cleans up properly.\n- [ ] Theme toggle persists or respects `prefers-color-scheme` fallback.\n- [ ] Skip-to-content link focuses main content on activation.\n- [ ] Focus visible states are present on all interactive elements.\n\n---\n\n## 12. Summary: The Non-Negotiables\n\n| Domain | Absolute Rule | Verification Command |\n|---|---|---|\n| **Aesthetic** | Zero border radius. No template UI. Brutalist + Editorial only. | `grep -r \"rounded-full\\|rounded-md\\|rounded-lg\\|rounded-sm\" src\u002F` (must be empty) |\n| **Grid** | All spacing multiples of `28px`. Visible background grid. | Visual QA + CSS inspection |\n| **Accessibility** | WCAG AAA. Meaningful `alt` text. Motion gating. Skip link. | `grep 'alt=\"\"' src\u002F` (must be 0 for content) |\n| **TypeScript** | `erasableSyntaxOnly`, `noUncheckedIndexedAccess`. Union types > enums. | `pnpm typecheck` |\n| **Content** | `import.meta.glob` uses `..\u002Fcontent\u002F...`. Eager loading for current scale. | `console.log(Object.keys(...))` |\n| **Typography** | Cormorant (Headlines), Plex Mono (Utility), Inter (Body). | Visual inspection |\n| **Installation** | Bespoke only. No external UI libs. State lifted to `App.tsx`. | `package.json` scan + `App.tsx` review |\n\n*Built from the ground up to be a digital installation, not a generic portfolio. Every line of code serves the \"Engineered Soul\" thesis. This document is the constitution. Deviations are regressions.*\n",{"name":5,"license":14,"version":23,"description":24,"allowed-tools":25},"3.0.0","Tactile Brutalist + High-End Editorial personal portfolio SPA with React 19, TypeScript 6 strict, Vite 6, Tailwind CSS v4 CSS-first @theme, pnpm. Covers complete lifecycle from scaffold to shipping: kinetic typography, hash-based routing, import.meta.glob content ingestion, dual-theme (night\u002Fday) design system, WCAG AAA accessibility, component-driven digital installation. Use when building a distinctive, anti-generic portfolio or personal site with React + Vite + Tailwind v4.\n","Read, Write, Edit, Glob, Grep, Bash","main","7d045d4d6ec778ab8575aad8f8a7e7e7d4321918","skills\u002Fpersonal-portfolio","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video","https:\u002F\u002Fgithub.com\u002Fnordeim","A freelance IT engineer","2026-07-06 19:57:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add nordeim\u002Fstory-into-video --skill personal-portfolio",{"tool":39,"command":40},"bunx","bunx skills add nordeim\u002Fstory-into-video --skill personal-portfolio",{"tool":42,"command":43},"pnpm","pnpm dlx skills add nordeim\u002Fstory-into-video --skill personal-portfolio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fpersonal-portfolio\u002FSKILL.md",true,[],[48,57,65,73,80,88],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":52,"licenseFileUrl":53,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M77Q7YD61R8X6JKW9F3N07PN","webapp-testing","Web application testing principles. E2E, Playwright, deep audit strategies.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M77Q7AMJRHTJ41DFBTP7TSPF","web-search","Implement web search capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to search for real-time information from the web, retrieve up-to-date content beyond the knowledge cutoff, or find the latest news and data. Returns structured search results with URLs, snippets, and metadata.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fweb-search\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M77Q74VD9G7H0HYYDA39NS7G","web-reader","Implement web page content extraction capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to scrape web pages, extract article content, retrieve page metadata, or build applications that process web content. Supports automatic content extraction with title, HTML, and publication time retrieval.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fweb-reader\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fweb-reader\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M77Q6WY2DJZV5DQTMYKN9PVF","web-frameworks","Build modern full-stack web applications with Next.js 16 + React 19 (App Router, Server Components, RSC, PPR, cacheComponents, async params, SSR, SSG, ISR, standalone output), Turborepo (monorepo, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons). Use when creating React applications, implementing server-side rendering, setting up monorepos, optimizing build performance and caching, or working with TypeScript full-stack projects.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fweb-frameworks\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M77Q6DD51GTZG7N68PSSSZ49","video-understand","Implement specialized video understanding capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze video content, understand motion and temporal sequences, extract information from video frames, describe video scenes, or perform video-based AI analysis. Optimized for MP4, AVI, MOV, and other common video formats.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-understand\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-understand\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M77Q667DHYZWHXQGB2MJDRA4","video-generation","Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-generation\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fnordeim\u002Fstory-into-video\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-generation\u002FSKILL.md",[],[]]