/* Hallmark · shape: Marquee Hero (swapped from Narrative Workflow, draw 2da9b3: a portfolio has no stages) · genre: atmospheric · theme: Spore (deal 3/3, seed pseudonymous-personal-projects-portfolio-386b·4c7ab7e9·2026-11-03·r0) · job: hire · draw: 2da9b3
 * hero: Poster · nav: edge-aligned, fixed, blurred once scrolled · footer: mast · imagery: the user's own renders, video and photograph, plus a sample terminal (Pinned) · signature: the live Clifford attractor from the user's wallpaper, bent by the pointer, in Espresso's eye colour · spore: head-torch ground, accent retuned to the cat's eye (hue 108)
 * axes: dark/roman-serif/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: H, six tiles compete; the fractal tile leads at eight columns by two rows and the rest sit in text wells */
/* Hallmark · dismissed 23 · the hire section is built on one count in the accent, as Spore's Range sets a price or count · the only display type in accent on the page */
/* Hallmark · waive 47b · one terminal frame, the user's own tools and commands inside · the workflow is what the page sells */
/* Hallmark · waive 83 · the renders, the dance video and Espresso are all the user's own work and cat · a portfolio of the user's own GPU renders is the page's reason */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-paper: oklch(14% 0.01 60); --color-paper-2: oklch(18.5% 0.013 60); --color-paper-3: oklch(23% 0.018 58);
  --color-ink: oklch(94% 0.025 95); --color-ink-2: oklch(85% 0.022 90); --color-muted: oklch(68% 0.02 80);
  --color-rule: oklch(30% 0.016 60);
  --color-accent: oklch(84% 0.15 108); --color-accent-2: oklch(91% 0.11 108); --color-accent-ink: oklch(16% 0.02 100); --color-focus: oklch(88% 0.16 108);
  --color-scrim: oklch(14% 0.01 60 / 0.72);
  --text-marquee: clamp(3rem, 8vw, 7.5rem);
  --text-figure: clamp(5rem, 11vw, 11rem);
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --color-term: oklch(10% 0.01 60);
  --nav-height: 72px;
}

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-sticky-nav); transition: background-color var(--dur-short) var(--ease-out); }
.nav.is-scrolled { background: color-mix(in oklab, var(--color-paper) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--color-rule); }
.nav a.is-current { color: var(--color-accent); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.wordmark { font-family: var(--font-display); font-size: var(--text-xl); text-decoration: none; color: var(--color-ink); white-space: nowrap; }
.nav ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav a:not(.wordmark) { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav a:not(.wordmark):hover { color: var(--color-accent); }
.nav a:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* hero */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; isolation: isolate; background: var(--color-paper); }
.hero__art { position: absolute; inset: 0; z-index: var(--z-base); margin: 0; }
.hero__art img, .hero__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__art canvas { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.hero__art canvas.is-live { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: var(--z-base); pointer-events: none; background: linear-gradient(90deg, var(--color-scrim) 0%, transparent 62%); }
.hero__body { position: relative; z-index: var(--z-raised); padding-block: var(--space-4xl) var(--space-3xl); }
.hero h1 { font-size: var(--text-marquee); line-height: 0.98; max-width: 11ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); }

/* controls */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--quiet { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink-2); }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
html:not(.js) [data-loop-toggle] { display: none; }

/* sections */
.section { padding-block: var(--section-gap) 0; }
.section--last { padding-bottom: var(--section-gap-l); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }

/* footer */
.footer { padding-block: var(--section-gap-s) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__mast { font-family: var(--font-display); font-size: var(--text-marquee); line-height: 0.95; letter-spacing: var(--tracking-display); color: var(--color-ink); overflow-wrap: break-word; min-width: 0; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.quotes { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-md); }
.quotes__title { font-size: var(--text-title); margin-bottom: var(--space-md); }
.quotes li { color: var(--color-ink-2); overflow-wrap: anywhere; font-size: var(--text-sm); max-width: 70ch; }
.quotes q { quotes: "\201C" "\201D"; }
.footer__links { display: grid; gap: var(--space-sm); align-content: start; justify-items: start; }
.footer__links a { color: var(--color-ink); }
.footer__links a:hover { text-decoration-color: var(--color-accent); }
.footer__links small { color: var(--color-muted); margin-top: var(--space-md); }

@media (max-width: 60rem) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .nav ul { gap: var(--space-md); }
  .hero::after { background: linear-gradient(0deg, var(--color-scrim) 0%, transparent 70%); }
}
@media (max-width: 40rem) {
  .nav li:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art canvas { display: none; }
  .btn, .nav a { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .hero [data-loop-toggle] { display: none; } }
.hero { color: var(--color-ink); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* the work, as a bento of case tiles */
.work { border-top: 6px solid var(--color-accent); }
.head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(360px, auto); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-sm); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; min-width: 0; }
.tile--lead { grid-column: span 8; grid-row: span 2; min-height: 752px; }
.tile--tall { grid-column: span 4; grid-row: span 2; }
.tile--half { grid-column: span 6; }
.tile--photo > img, .tile--photo > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: var(--z-base); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: var(--z-base); background: linear-gradient(0deg, var(--color-scrim) 0%, transparent 55%); pointer-events: none; }
.tile__text { position: relative; z-index: var(--z-raised); display: grid; gap: var(--space-sm); justify-items: start; }
.tile h3 { font-size: var(--text-2xl); max-width: 22ch; }
.tile--lead h3 { font-size: var(--text-section); }
.tile p { color: var(--color-ink-2); max-width: 46ch; }
.tile .stack { color: var(--color-accent); font-size: var(--text-sm); }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-sm); justify-self: start; align-self: flex-start; }
.tile--photo .chip { background: var(--color-scrim); }
.tile__toggle { position: absolute; top: var(--space-md); right: var(--space-md); z-index: var(--z-raised); min-height: 44px; background: var(--color-scrim); }
.grained { position: relative; isolation: isolate; }
.grained::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: var(--grain); mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* renders, as a rail past the edge */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(46rem, 82%); gap: var(--gap-columns); margin: 0; padding: 0 var(--gutter) var(--space-md); padding-inline-start: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-color: var(--color-accent) var(--color-paper-2); }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.rail li { scroll-snap-align: start; min-width: 0; }
.rail figure { margin: 0; }
.rail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-card); background: var(--color-paper-2); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.rail figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* espresso */
.cat { padding-block: var(--section-gap) 0; }
.cat__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.cat figure { margin: 0; }
.cat img { width: 100%; object-fit: cover; border-radius: var(--radius-card); background: var(--color-paper-3); }
.cat__big img { aspect-ratio: 4 / 5; max-height: 820px; object-position: 50% 35%; }
.cat__small img { aspect-ratio: 4 / 3; object-position: 40% 40%; }
.cat__text { display: grid; gap: var(--space-lg); }
.cat__text p { color: var(--color-ink-2); }
.cat figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* hero hint and the live toy */
.hero__hint { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
html:not(.js) .hero__hint { display: none; }
.hero__art canvas { cursor: crosshair; }

/* the editor types */
.quotes q.is-typing::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: var(--space-3xs); vertical-align: -0.12em; background: var(--color-accent); }

@media (max-width: 60rem) {
  .head--split { grid-template-columns: minmax(0, 1fr); }
  .tile--lead, .tile--tall, .tile--half { grid-column: 1 / -1; grid-row: auto; }
  .tile--lead { min-height: 480px; }
  .tile--tall { min-height: 560px; }
  .cat__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .tile { padding: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) { .hero__hint { display: none; } }
.tile .stack { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.tile .stack .chip { color: var(--color-ink); }

/* how I build: a terminal held still while the four panels scroll past it */
.pinned { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.term { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); margin: 0; z-index: var(--z-sticky); }
.term__screen { margin: 0; min-height: 420px; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-term); color: var(--color-ink-2); font: 400 var(--text-md)/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.term__screen code { font: inherit; display: block; }
.term figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.line--in { color: var(--color-ink); }
.line--ok { color: var(--color-accent); }
.js .line { opacity: 0; animation: line-in var(--dur-long) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 160ms); }
@keyframes line-in { to { opacity: 1; } }
.panels { margin: 0; padding: 0; list-style: none; }
.panels li { min-height: 62vh; display: grid; align-content: center; gap: var(--space-md); padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); transition: opacity var(--dur-long) var(--ease-out); }
.panels li:first-child { border-top: 0; }
.panels h3 { font-size: var(--text-2xl); }
.panels p { color: var(--color-ink-2); }
.js .panels li:not(.is-active) { opacity: 0.45; }

/* hire me: the close, weighted by one real number */
.hire { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.hire__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.hire__head { display: grid; gap: var(--space-lg); justify-items: start; position: sticky; top: calc(var(--nav-height) + var(--space-lg)); }
.hire__head .lead { color: var(--color-ink-2); }
.hire__mail { color: var(--color-muted); font-size: var(--text-sm); }
.hire__body { display: grid; gap: var(--space-2xl); }
.figure-well { padding: var(--space-xl) var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-3); }
.figure { font-family: var(--font-display); font-size: var(--text-figure); line-height: 0.86; letter-spacing: var(--tracking-display); color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: break-word; min-width: 0; max-width: none; }
.figure__of { font-size: 0.32em; color: var(--color-ink); letter-spacing: 0; }
.figure__label { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 40ch; }
.pitch { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.pitch div { border-top: 2px solid var(--color-accent); padding-top: var(--space-md); }
.pitch dt { font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; color: var(--color-ink); }
.pitch dd { margin: var(--space-xs) 0 0; color: var(--color-ink-2); }

/* one reveal: the tiles slide in */
.js [data-reveal] > * { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }

@media (max-width: 60rem) {
  .pinned { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .term { top: var(--nav-height); background: var(--color-paper); padding-block: var(--space-sm); }
  .term__screen { min-height: 0; padding: var(--space-lg); font-size: var(--text-sm); }
  .term figcaption { display: none; }
  .panels li { min-height: 52vh; }
  .hire__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .hire__head { position: static; }
}
@media (max-width: 40rem) {
  .pitch { grid-template-columns: minmax(0, 1fr); }
  .figure-well { padding: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .js .line { animation: none; opacity: 1; }
  .js [data-reveal] > * { opacity: 1; transform: none; transition: none; }
  .js .panels li:not(.is-active) { opacity: 1; }
  .nav { transition: none; }
}
