/* Hallmark · v2.0.0 · theme: custom · idea: "six real CV folders on a desk; the visitor opens theirs and the page takes its colour" · vibe: "warm desk, friendly, tactile, quick" · paper light warm, display Bricolage Grotesque (the user picked it twice), accent the folder palette · hero: name with the portrait inside the line, folders along the bottom of the first screen · signature: folders that swing open, slide the real CV out and pour their colour into the work · job: hire, the action is the CV download */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: R, six colours is loud; the ground stays cream and each section below the hero takes one colour at a time */
/* Hallmark · waive 26b · no disabled attribute or aria-disabled anywhere on the page · every button opens a folder or copies a link, and none is ever switched off */

:root {
  --bg: oklch(0.965 0.016 85);
  --ink: oklch(0.21 0.02 50);
  --muted: oklch(0.45 0.02 55);
  --line: oklch(0.21 0.02 50 / 0.14);
  --card: oklch(0.92 0.02 80);
  --accent: oklch(0.21 0.02 50);
  --accent-ink: oklch(0.965 0.016 85);
  --focus: oklch(0.52 0.17 255);
  --sticky: oklch(0.92 0.13 98);
  --band: oklch(0.92 0.13 98 / 0.55);
  --scrim: oklch(0.21 0.02 50 / 0.35);
  --sticky-ink: oklch(0.26 0.04 80);
  --sheet: oklch(0.99 0.003 85);
  --front-hi: oklch(1 0 0 / 0.25);
  --front-lo: oklch(0 0 0 / 0.08);
  --shadow: oklch(0.25 0.03 50 / 0.28);
  --f-graphics: oklch(0.5 0.15 258);
  --f-systems: oklch(0.55 0.18 35);
  --f-software: oklch(0.67 0.12 150);
  --f-quant: oklch(0.3 0.03 50);
  --f-finance: oklch(0.82 0.14 85);
  --f-founder: oklch(0.8 0.09 15);
  --t-graphics: oklch(0.92 0.04 255);
  --t-systems: oklch(0.93 0.05 40);
  --t-software: oklch(0.93 0.05 150);
  --t-quant: oklch(0.88 0.015 60);
  --t-finance: oklch(0.94 0.07 90);
  --t-founder: oklch(0.94 0.04 15);
  --f-light-ink: oklch(0.98 0.01 85);
  --f-dark-ink: oklch(0.21 0.02 50);
  --fig-bg: oklch(0.3 0.03 50);
  --fig-ink: oklch(0.82 0.14 85);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-note: "Caveat", "Segoe Print", cursive;
  --display-weight: 800;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-card: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
html[data-track-current="graphics"] { --pour: var(--t-graphics); --pour-c: var(--f-graphics); }
html[data-track-current="systems"] { --pour: var(--t-systems); --pour-c: var(--f-systems); }
html[data-track-current="software"] { --pour: var(--t-software); --pour-c: var(--f-software); }
html[data-track-current="quant"] { --pour: var(--t-quant); --pour-c: var(--f-quant); }
html[data-track-current="finance"] { --pour: var(--t-finance); --pour-c: var(--f-finance); }
html[data-track-current="founder"] { --pour: var(--t-founder); --pour-c: var(--f-founder); }

.btn--ghost { border-color: transparent; }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--line); } }

/* Hero */
.hero { min-height: calc(100svh - 72px); padding-block: var(--space-6) var(--space-8); display: grid; align-content: center; }
.hero > .wrap { position: relative; width: 100%; }
.hero h1 { font-size: clamp(64px, 10.4vw, 156px); line-height: .96; letter-spacing: -0.045em; white-space: nowrap; }
.face { position: relative; display: inline-block; width: 1.5em; height: .76em; border-radius: 999px; vertical-align: -.04em; margin-inline: .04em; background: var(--f-finance); }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: inherit; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .face:hover img { transform: rotate(-4deg) scale(1.04); } }
.face__hi { position: absolute; right: -.12em; top: -.28em; padding: .06em .22em; border-radius: .5em .5em .5em .1em; background: var(--sticky); color: var(--sticky-ink); font-family: var(--font-note); font-size: .22em; letter-spacing: 0; line-height: 1.2; transform: scale(0) rotate(-12deg); transform-origin: 0 100%; transition: transform .3s var(--ease-out); }
@media (hover: hover) { .face:hover .face__hi { transform: scale(1) rotate(-6deg); } }

.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-4) var(--space-7); margin-top: var(--space-5); max-width: 1000px; }
.lede { font-size: clamp(19px, 1.55vw, 22px); max-width: 36ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.sticker {
  position: absolute; right: var(--space-2); top: var(--space-4); display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%;
  background: var(--f-systems); color: var(--f-light-ink); text-align: center; line-height: 1.05;
  box-shadow: 0 0 0 5px var(--bg), 0 10px 24px -14px var(--shadow);
  transform: rotate(var(--rot)); transition: transform .3s var(--ease-out);
}
.sticker b { font-family: var(--font-display); font-size: 27px; letter-spacing: -0.03em; }
.sticker span { display: block; font-size: 13px; font-weight: 600; margin-top: -26px; }
@media (hover: hover) { .sticker:hover { transform: rotate(6deg) scale(1.08); } }

/* The folders */
.desk { margin-top: var(--space-7); }
.folders { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.folders > li { transition: translate .35s var(--ease-out); }
@media (hover: hover) {
  .folders > li:has(+ li .folder:hover) { translate: -6px 0; }
  .folders > li:has(.folder:hover) + li { translate: 6px 0; }
}
.folder {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.02; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 900px; color: var(--f-light-ink);
  transition: opacity .3s var(--ease), transform .35s var(--ease-out);
}
.folders > li:nth-child(1) .folder { --c: var(--f-graphics); }
.folders > li:nth-child(2) .folder { --c: var(--f-systems); }
.folders > li:nth-child(3) .folder { --c: var(--f-software); color: var(--f-dark-ink); }
.folders > li:nth-child(4) .folder { --c: var(--f-quant); }
.folders > li:nth-child(5) .folder { --c: var(--f-finance); color: var(--f-dark-ink); }
.folders > li:nth-child(6) .folder { --c: var(--f-founder); color: var(--f-dark-ink); }
.folder__back { position: absolute; inset: 14% 0 0 0; border-radius: 6px 14px 14px 14px; background: color-mix(in oklab, var(--c) 78%, var(--ink)); }
.folder__back::before { content: ""; position: absolute; left: 0; top: -11%; width: 44%; height: 14%; border-radius: 10px 12px 0 0; background: inherit; }
.folder__cv {
  position: absolute; left: 10%; top: 4%; width: 80%; height: 76%; object-fit: cover; object-position: top; border-radius: 3px; background: var(--sheet);
  box-shadow: 0 1px 0 var(--line), 0 6px 14px -8px var(--shadow);
  transform: translateY(18%); transition: transform .5s var(--ease-out), box-shadow .3s var(--ease);
}
.folder__front {
  position: absolute; inset: 36% 0 0 0; display: grid; align-content: end; justify-items: start; padding: var(--space-4);
  border-radius: 14px; background: var(--c); text-align: left;
  box-shadow: inset 0 1px 0 var(--front-hi), 0 -1px 0 var(--front-lo);
  transform-origin: 50% 100%; transform: rotateX(0deg); transition: transform .5s var(--ease-out);
}
.folder__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -0.03em; line-height: 1; }
.folder__sub { font-size: 13px; font-weight: 600; }
.folder__note {
  position: absolute; right: -3%; top: 21%; max-width: 62%; padding: var(--space-2) var(--space-3); background: var(--sticky); color: var(--sticky-ink);
  font-family: var(--font-note); font-size: 19px; line-height: 1.05; text-align: left; box-shadow: 0 6px 12px -8px var(--shadow);
  transform: rotate(5deg); transition: transform .35s var(--ease-out);
}
@media (hover: hover) {
  .folder:hover .folder__cv { transform: translateY(4%) rotate(-2deg); }
  .folder:hover .folder__front { transform: rotateX(-16deg); }
  .folder:hover .folder__note { transform: rotate(-3deg) translateY(-3px); }
}
.folder:active .folder__front { transform: rotateX(-8deg); transition-duration: .09s; }
.folder[aria-pressed="true"] .folder__cv { transform: translateY(-30%) rotate(-3deg) scale(1.06); box-shadow: 0 18px 30px -14px var(--shadow); }
.folder[aria-pressed="true"] .folder__front { transform: rotateX(-38deg); }
.folder[aria-pressed="true"] .folder__note { transform: rotate(-8deg) translate(6px, 10px); }
/* Behind an open folder the others lose their colour, not their contrast (measured: every label 4.7:1 or better) */
.folders:has([aria-pressed="true"]) .folder:not([aria-pressed="true"]) { filter: saturate(.35); transform: translateY(10px) scale(.97); }
@media (hover: hover) { .folders:has([aria-pressed="true"]) .folder:not([aria-pressed="true"]):hover { filter: none; transform: translateY(4px) scale(.99); } }
.folder:focus-visible { outline-offset: 6px; border-radius: 14px; }

.picked { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); border-radius: 22px; background: var(--pour, var(--card)); transition: background-color .5s var(--ease); animation: picked-in .4s var(--ease-out); }
.picked[hidden] { display: none; }
.picked .peek[hidden] { display: none; }
.picked .peek:focus-visible { outline-offset: 4px; }
.picked p { margin-right: auto; font-size: 16px; }
.picked p b { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-right: var(--space-2); }
.picked p span { color: var(--muted); }
@keyframes picked-in { from { opacity: 0; transform: translateY(10px); } }

/* The work takes the opened folder's colour */
.work { position: relative; background: var(--pour, transparent); transition: background-color .6s var(--ease); border-top: 1px solid var(--line); }
.work__head h2 { display: flex; align-items: center; gap: var(--space-4); }
.work__head h2::before { content: ""; flex: none; width: .9em; height: .7em; border-radius: .12em .18em .14em .14em; background: var(--pour-c, var(--f-finance)); transition: background-color .5s var(--ease); }
.w-card { padding: var(--space-3) var(--space-3) var(--space-5); border-radius: var(--radius-card); background: var(--sheet); box-shadow: 0 1px 0 var(--line), 0 18px 30px -26px var(--shadow); }
@media (hover: hover) { .w-card:has(.w-link):hover { box-shadow: 0 1px 0 var(--line), 0 26px 40px -24px var(--shadow); } }
.w-pic { border-radius: 14px; }
.w-name, .w-fig, .w-award, .w-link { padding-inline: var(--space-2); }
.w-link { margin-inline: var(--space-2); padding: 0; }

/* Results as stickers that slap on */
.rec--stickers .rec__list { gap: var(--space-5); }
.rec--stickers .rec__item { position: relative; border-radius: 18px; color: var(--f-light-ink); box-shadow: 0 0 0 4px var(--bg), 0 14px 26px -18px var(--shadow); rotate: var(--tilt, -1.5deg); transition: rotate .3s var(--ease-out), transform .3s var(--ease-out); }
@media (hover: hover) { .rec--stickers .rec__item:hover { rotate: 0deg; transform: translateY(-3px) scale(1.01); } }
.rec--stickers .rec__where { color: inherit; }
.rec--stickers .rec__item:nth-child(1) { background: var(--f-systems); --tilt: -2deg; --stamp: -6deg; }
.rec--stickers .rec__item:nth-child(2) { background: var(--f-graphics); --tilt: 1.5deg; --stamp: 5deg; }
.rec--stickers .rec__item:nth-child(3) { background: var(--f-quant); --tilt: -1deg; --stamp: -4deg; }
.rec--stickers .rec__item:nth-child(4) { background: var(--f-software); color: var(--f-dark-ink); --tilt: 1.2deg; --stamp: 6deg; }
.rec--stickers .rec__item:nth-child(5) { background: var(--f-finance); color: var(--f-dark-ink); --tilt: -1.6deg; --stamp: -5deg; }
.rec--stickers .rec__item:nth-child(6) { background: var(--f-founder); color: var(--f-dark-ink); --tilt: 1deg; --stamp: 4deg; }
.rec--stickers .rec__item:nth-child(7) { background: var(--sticky); color: var(--sticky-ink); --tilt: -1.2deg; --stamp: -6deg; }

/* Art */
.art--folders { border-top: 1px solid var(--line); }
.art--folders .art__model { background: var(--t-finance); }
.art--folders .art__prints img { border-radius: 14px; box-shadow: 0 14px 26px -18px var(--shadow); }

@media (max-width: 1080px) {
  .hero h1 { white-space: normal; }
  .hero__row { grid-template-columns: minmax(0, 1fr); }
  .sticker { top: 0; right: 0; width: 104px; height: 104px; }
  .sticker b { font-size: 21px; }
  .sticker span { font-size: 12px; margin-top: -20px; }
  .folders { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-6); }
}
@media (max-width: 560px) {
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder__note { top: 4%; right: -2%; max-width: 74%; padding: var(--space-1) var(--space-2); font-size: 15px; }
  .sticker { width: 84px; height: 84px; top: -6px; right: var(--space-3); }
  .sticker b { font-size: 17px; }
  .sticker span { font-size: 11px; margin-top: calc(var(--space-4) * -1); }
  .actions .btn { flex: 1 1 100%; }
  .picked p { flex: 1 1 60%; }
}
@media (max-width: 360px) { .sticker { width: 70px; height: 70px; top: -14px; right: var(--space-2); } .sticker b { font-size: 14px; } .sticker span { font-size: 10px; margin-top: calc(var(--space-3) * -1); } }

/* Also built: the rest of the work, always on show */
.also { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.also h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.also ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-3); }
.also li > * { display: grid; gap: 2px; height: 100%; padding: var(--space-4) var(--space-5); border-radius: 16px; background: var(--sheet); box-shadow: 0 1px 0 var(--line); font-size: 15px; color: var(--muted); text-decoration: none; }
.also b { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.also a b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.also a { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
@media (hover: hover) { .also a:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 16px 26px -20px var(--shadow); } }
.also a:active { transform: translateY(0); }

/* Round five: the pull, the greeting, the loops, the CV lens, the phone menu */
/* The menu exists only where the nav links don't fit (640px and under); wider screens keep the plain links */
.menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-5); border: 1.5px solid var(--line); border-radius: 999px; background: var(--sheet); cursor: pointer; font-size: 15px; font-weight: 600; transition: transform .15s var(--ease), border-color .15s var(--ease); }
.menu-btn:active { transform: scale(.95); border-color: var(--ink); }
@media (min-width: 641px) { .nav__menu { display: none; } }

.pull-hint { margin-top: var(--space-3); font-family: var(--font-note); font-size: 20px; color: var(--muted); rotate: -1deg; }
/* Words that differ by device: a mouse grabs and clicks, a finger taps */
.for-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .pull-hint { display: none; }
  .for-fine { display: none; }
  .for-touch { display: inline; }
}
.folder__cv { cursor: grab; }
.is-grabbing, .is-grabbing * { cursor: grabbing !important; }
.folder.is-pulling .folder__cv { transition: transform .06s linear; transform: translateY(calc(18% - var(--pull, 0px))) rotate(-2deg); }
.folder[aria-pressed="true"].is-pulling .folder__cv { transform: translateY(calc(-30% - var(--pull, 0px))) rotate(-3deg) scale(1.06); }
.folder.is-pulling .folder__front { transform: rotateX(-24deg); }
.folder.is-past .folder__cv { box-shadow: 0 0 0 3px var(--sticky), 0 18px 30px -14px var(--shadow); }

.hello { position: absolute; right: 150px; top: 0; padding: var(--space-2) var(--space-4) var(--space-3); background: var(--sticky); color: var(--sticky-ink); font-family: var(--font-note); font-size: 30px; line-height: 1; box-shadow: 0 10px 18px -12px var(--shadow); rotate: 4deg; animation: hello-in .6s cubic-bezier(.22, 1, .36, 1) .9s backwards; }
.hello[hidden] { display: none; }
@keyframes hello-in { from { opacity: 0; transform: translateY(-14px) scale(1.2) rotate(8deg); } }
@media (max-width: 1080px) { .hello { position: static; justify-self: start; margin-top: var(--space-2); font-size: 24px; } }

.w-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.w-card.is-live .w-loop { opacity: 1; }
.w-live { position: absolute; right: var(--space-3); top: var(--space-3); padding: var(--space-1) var(--space-3); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 6px 14px -10px var(--shadow); transition: opacity .2s var(--ease); }
.w-card.is-live .w-live { opacity: 0; }
@media (hover: none), (pointer: coarse) { .w-live { display: none; } }

.lens { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 60; width: 260px; padding: var(--space-3); border-radius: 18px; background: var(--sheet); box-shadow: 0 1px 0 var(--line), 0 30px 60px -24px var(--shadow); pointer-events: none; transition: opacity .25s var(--ease), transform .35s cubic-bezier(.22, 1, .36, 1); }
.lens[hidden] { display: none; }
.js .lens:not(.is-on) { opacity: 0; transform: translateY(16px) scale(.97); }
.lens__cap { margin-bottom: var(--space-2); font-size: 13px; font-weight: 700; }
.lens__page { position: relative; height: 210px; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.lens__sheet { position: absolute; left: 0; right: 0; top: 0; --fy: .3; transform: translateY(calc(105px - var(--fy) * 100%)); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.lens__sheet img { display: block; width: 100%; height: auto; }
.lens__band { position: absolute; left: 3%; right: 3%; display: block; border-radius: 4px; background: var(--band); outline: 2px solid var(--f-finance); mix-blend-mode: multiply; }
.lens__band[hidden] { display: none; }
@media (max-width: 1080px), (hover: none) { .lens { display: none; } }

/* The phone menu: a sheet that rises from the bottom edge, where a thumb reaches. CVs first, since a CV is what the page is for. */
html.sheet-open { overflow: hidden; }
.sheet {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: calc(100svh - var(--space-6)); margin: 0; padding: 0; border: 0;
  border-radius: 28px 28px 0 0; background: var(--sheet); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -24px 60px -30px var(--shadow); transform: translateY(var(--drag, 0px)); transition: transform .3s var(--ease-out);
}
.sheet::backdrop { background: var(--scrim); }
.sheet[open] { animation: sheet-in .46s cubic-bezier(.22, 1, .36, 1); }
.sheet[open]::backdrop { animation: fade-in .3s var(--ease); }
.sheet.is-closing { animation: sheet-out .24s cubic-bezier(.4, 0, 1, 1) forwards; }
.sheet.is-closing::backdrop { animation: fade-out .24s var(--ease) forwards; }
.sheet.is-dragging { transition: none; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet__in { display: grid; gap: var(--space-4); padding: 0 max(var(--space-5), env(safe-area-inset-right)) calc(var(--space-5) + env(safe-area-inset-bottom)) max(var(--space-5), env(safe-area-inset-left)); }
.sheet__in:focus { outline: none; }
.sheet__top { position: relative; display: grid; place-items: center; height: 48px; margin-inline: calc(var(--space-5) * -1); touch-action: none; cursor: grab; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 22%, transparent); }
.sheet__x { position: absolute; right: var(--space-3); top: var(--space-2); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; transition: transform .12s var(--ease); }
.sheet__x::before, .sheet__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.sheet__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sheet__x:active { transform: scale(.9); }
.sheet__label { justify-self: start; margin-top: calc(var(--space-3) * -1); font-family: var(--font-note); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 0; color: var(--muted); rotate: -1.5deg; }
/* Each CV is a small folder in its own colour; the open one stands up */
.sheet__cvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); padding-top: var(--space-2); }
.sheet__cv {
  position: relative; display: flex; align-items: end; width: 100%; min-height: 66px; padding: var(--space-3); border: 0; border-radius: 4px 12px 12px 12px;
  background: var(--c); color: var(--f-light-ink); font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 4.6vw, 18px); letter-spacing: -0.02em; line-height: 1; text-align: left; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease);
}
.sheet__cv::before { content: ""; position: absolute; left: 0; top: -9px; width: 46%; height: 10px; border-radius: 7px 9px 0 0; background: color-mix(in oklab, var(--c) 78%, var(--ink)); }
.sheet__cv:active { transform: scale(.94); transition-duration: .08s; }
.sheet__cv[aria-pressed="true"] { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--c), 0 14px 22px -14px var(--shadow); }
.sheet__cvs > li:nth-child(1) .sheet__cv { --c: var(--f-graphics); }
.sheet__cvs > li:nth-child(2) .sheet__cv { --c: var(--f-systems); }
.sheet__cvs > li:nth-child(3) .sheet__cv { --c: var(--f-software); color: var(--f-dark-ink); }
.sheet__cvs > li:nth-child(4) .sheet__cv { --c: var(--f-quant); }
.sheet__cvs > li:nth-child(5) .sheet__cv { --c: var(--f-finance); color: var(--f-dark-ink); }
.sheet__cvs > li:nth-child(6) .sheet__cv { --c: var(--f-founder); color: var(--f-dark-ink); }
.sheet__go { border-top: 1px solid var(--line); }
.sheet__go a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; text-decoration: none; transition: transform .15s var(--ease); }
.sheet__go a::after { content: ""; flex: none; width: .55em; height: .42em; border-radius: .06em .1em .08em .08em; background: var(--pour-c, var(--f-finance)); }
.sheet__go a:active { transform: translateX(6px); }
/* Email, with the two profiles beside it as small pills (they drop below it on the narrowest phones) */
.sheet__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sheet__mail { flex: 1 1 140px; min-height: 54px; }
.sheet__more { display: flex; gap: var(--space-2); }
.sheet__more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .12s var(--ease); }
.sheet__more a:active { transform: scale(.95); }
.sheet[open]:not(.is-closing) .sheet__cvs > li, .sheet[open]:not(.is-closing) .sheet__go > li, .sheet[open]:not(.is-closing) .sheet__more > li { animation: sheet-row .5s cubic-bezier(.22, 1, .36, 1) calc(90ms + var(--i, 0) * 28ms) backwards; }
@keyframes sheet-row { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 360px) { .sheet__cv { padding-inline: var(--space-2); } }
/* Short phones (an iPhone SE): the same sheet, packed closer */
@media (max-height: 700px) {
  .sheet__in { gap: var(--space-3); }
  .sheet__cv { min-height: 56px; }
  .sheet__go a { min-height: 48px; font-size: 24px; }
}

/* A shorter page: the film sits beside the prints, and the gaps between sections drop a step */
.work, .rec, .art { padding-block: var(--space-9) var(--space-8); }
.art--folders .art__in { align-items: start; }
.art--folders .art__model { grid-row: span 2; align-self: stretch; min-height: 0; }
.art--folders .art__prints { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.art--folders .art__prints figcaption { font-size: 13px; }
.art--folders .art__film { grid-column: 6 / -1; margin-top: 0; }
@media (max-width: 1080px) {
  .art--folders .art__model { grid-row: auto; min-height: 480px; }
  .art--folders .art__prints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art--folders .art__film { grid-column: 1 / -1; }
}

/* Phones: the picked CV rides along at the bottom of the screen while the folders are in view */
@media (max-width: 1080px) {
  .picked { position: sticky; bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -16px var(--shadow); }
}

/* Touch versions of the hover moments (page.js and fx.js add these classes on touch screens only) */
.face, .sticker { -webkit-tap-highlight-color: transparent; }
.face.is-hi img { transform: rotate(-4deg) scale(1.04); }
.face.is-hi .face__hi { transform: scale(1) rotate(-6deg); }
.sticker.is-slap { animation: slap .7s cubic-bezier(.22, 1, .36, 1); }
@keyframes slap { 35% { transform: rotate(18deg) scale(1.18); } }
.folder { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.folder.is-peek .folder__cv { transform: translateY(4%) rotate(-2deg); }
.folder.is-peek .folder__front { transform: rotateX(-16deg); }
.folder.is-peek .folder__note { transform: rotate(-3deg) translateY(-3px); }
.rec--stickers .rec__item.is-near { rotate: 0deg; transform: translateY(-3px) scale(1.01); }
/* The CV lens for a finger: a sticky note stuck on the corner of each card, holding a tiny copy of the open CV marked where the project sits */
.w-oncv {
  position: absolute; right: -6px; top: -14px; z-index: 3; display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1); background: var(--sticky); color: var(--sticky-ink); font-family: var(--font-note); font-size: 18px; line-height: .95;
  box-shadow: 0 8px 14px -10px var(--shadow); rotate: 3deg; opacity: 0; pointer-events: none;
}
.w-oncv__page { position: relative; flex: none; width: 30px; height: 42px; overflow: hidden; border-radius: 2px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line); }
.w-card.is-near .w-oncv__page img, .w-oncv__page img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: none; }
.w-oncv__page i { position: absolute; left: 0; right: 0; background: var(--band); outline: 1.5px solid var(--f-finance); mix-blend-mode: multiply; }
.w-oncv__txt { max-width: 9ch; }
.w-card.was-near .w-oncv { opacity: 1; animation: oncv-in .55s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes oncv-in { from { opacity: 0; transform: translateY(-10px) scale(1.3) rotate(9deg); } }
@media (prefers-reduced-motion: reduce) { .w-oncv { opacity: 1; } }
@media (max-width: 560px) {
  .picked { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); margin-top: var(--space-5); padding: var(--space-3); border-radius: 20px; }
  .picked[hidden] { display: none; }
  .picked .peek { grid-column: 1; grid-row: 1; }
  .picked p { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 1.35; }
  .picked p b { display: block; margin: 0 0 2px; font-size: 19px; }
  .picked .picked__close { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; }
  .picked .btn--accent { grid-column: 1 / 3; grid-row: 2; min-height: 48px; }
  .picked [data-copy-link] { grid-column: 3; grid-row: 2; min-height: 48px; padding-inline: var(--space-4); }
  .picked__close { width: 44px; min-height: 44px; padding: 0; border-color: var(--line); }
  .picked__close-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .picked__close::before, .picked__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
  .picked__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

  /* Shorter cards: screenshots at their own shape, a figure as a band */
  .cards > li:nth-child(n) .w-pic { aspect-ratio: 16 / 10; }
  .cards > li:nth-child(n) .w-pic--fig { aspect-ratio: 16 / 7; }

  /* Also built as one list, not five cards */
  .also ul { gap: 0; overflow: hidden; border-radius: 16px; background: var(--sheet); box-shadow: 0 1px 0 var(--line); }
  .also li > * { padding: var(--space-3) var(--space-4); border-radius: 0; background: none; box-shadow: none; }
  .also li + li > * { border-top: 1px solid var(--line); }
  @media (hover: hover) { .also a:hover { transform: none; box-shadow: none; } }

  /* Results: the same stickers, packed a little closer */
  .rec--stickers .rec__list { gap: var(--space-4); }
  .rec--stickers .rec__item { padding: var(--space-4) var(--space-5); }
  .rec--stickers .rec__big { font-size: 32px; margin-bottom: var(--space-1); }
}
