/* The portfolio: the model catalogue.
   One subject in studio light, the career as its specification, the projects as the lineup.
   Strict monochrome. Square corners. Inversion marks what is selected or current. */

:root {
  --bg: #050505;
  --plate: #0b0b0b;
  --ink: #f2f2f0;
  --ink-2: #bdbdba;
  --ink-3: #8f8f8c;
  --rule: #242424;
  --rule-2: #3a3a3a;
  --sel: var(--ink);
  --sel-fg: var(--bg);
  --radius: 0px;
  --shot-filter: none;

  --display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --text: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 86rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);

  /* one clock for every move on the page */
  --clock: 640ms;
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scrollbar-color: var(--rule-2) var(--bg); scrollbar-width: thin; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sel); color: var(--sel-fg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule-2); }
:focus-visible { outline: 1px dashed var(--ink); outline-offset: 4px; }

@keyframes blink { 50% { opacity: 0; } }

.c-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.c-skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 60;
  padding: 0.5rem 0.8rem; background: var(--sel); color: var(--sel-fg);
  font: 600 0.75rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.c-skip:focus { top: 1rem; }

/* --- type voices -------------------------------------------------------------------------- */

/* plate keys and small labels: extended caps, wide tracking, the badge voice */
.c-key {
  font: 600 0.6875rem/1.3 var(--display);
  font-stretch: 125%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.c-fig { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.c-h2 {
  margin: 0;
  font: 700 clamp(2.5rem, 6.4vw, 5.75rem)/0.9 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.c-lede { max-width: 58ch; margin: 1.5rem 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); text-wrap: pretty; }
.c-lede strong { color: var(--ink); font-weight: 600; }

/* --- top bar ------------------------------------------------------------------------------ */

.c-bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color var(--clock) var(--ease), border-color var(--clock) var(--ease);
}
.c-bar.is-solid, .c-page .c-bar { background: var(--bg); border-bottom-color: var(--rule); }
.c-bar .c-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.c-mark { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.c-logo {
  display: block; width: 2.25rem; height: 2.25rem; background: var(--ink);
  -webkit-mask: url(/images/pk-logo.svg) center / contain no-repeat; mask: url(/images/pk-logo.svg) center / contain no-repeat;
  transition: background-color 200ms var(--ease);
}
.c-bar nav { margin-left: auto; }
.c-nav { display: flex; gap: clamp(1rem, 2.6vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.c-nav a {
  display: inline-block; padding: 0.5rem 0;
  font: 600 0.6875rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  transition: color 200ms var(--ease);
}
.c-nav a:hover, .c-nav a[aria-current='page'] { color: var(--ink); }
.c-nav li:last-child a { margin-right: -0.16em; }
.c-nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.6em; }

/* --- first viewport: the studio shot ------------------------------------------------------ */

.c-hero {
  position: relative;
  min-height: max(40rem, 100svh);
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.c-shot {
  position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 50%;
  height: 100%; aspect-ratio: 1800 / 2448;
  translate: -34% 0;
  margin: 0;
  /* the photo already falls off to black; the mask only melts its last edge into the ground */
  mask-image: linear-gradient(to right, transparent, #000 24%, #000 76%, transparent), linear-gradient(to bottom, #000 62%, transparent 96%);
  mask-composite: intersect;
}
.c-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; mix-blend-mode: lighten; }
.c-shot { filter: var(--shot-filter); }
.c-hero-foot { align-self: end; padding-bottom: clamp(1.5rem, 4vh, 3rem); container-type: inline-size; }
.c-name {
  margin: 0;
  /* sized so PEYA KHOEUN spans the measure in extended caps */
  font: 800 clamp(2.25rem, calc(100cqi / 10.1), 13.5rem)/0.8 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.c-glue { white-space: nowrap; }
.c-name .cursor-key { width: 0.42em; height: 0.72em; margin-left: 0.06em; vertical-align: 0; }
.c-spec-strip {
  display: grid; grid-template-columns: 1.6fr 1.1fr 0.8fr;
  margin: clamp(1.5rem, 3.5vh, 2.5rem) 0 0; padding: 0;
  border-top: 1px solid var(--rule-2);
}
.c-spec-strip > div { padding: 1rem 1.25rem 0 0; }
.c-spec-strip > div + div { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.c-spec-strip dt { margin-bottom: 0.4rem; }
.c-spec-strip dd { margin: 0; font-size: 1rem; line-height: 1.4; }

/* studio lights come up once, when the page loads */
@media (prefers-reduced-motion: no-preference) {
  .js .c-shot img { opacity: 0; filter: brightness(0.15) contrast(1.2); transition: opacity 1.6s var(--ease), filter 2.4s var(--ease); }
  .js.is-lit .c-shot img { opacity: 1; filter: none; }
  .js .c-name, .js .c-spec-strip > div { opacity: 0; translate: 0 0.6rem; transition: opacity var(--clock) var(--ease), translate var(--clock) var(--ease); }
  .js.is-lit .c-name, .js.is-lit .c-spec-strip > div { opacity: 1; translate: 0 0; }
  .js.is-lit .c-name { transition-delay: 300ms; }
  .js.is-lit .c-spec-strip > div:nth-child(1) { transition-delay: 520ms; }
  .js.is-lit .c-spec-strip > div:nth-child(2) { transition-delay: 600ms; }
  .js.is-lit .c-spec-strip > div:nth-child(3) { transition-delay: 680ms; }
}

/* --- sections ----------------------------------------------------------------------------- */

.c-section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.c-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.c-head .c-lede { grid-column: 1 / -1; margin-top: 0.25rem; }

/* --- spec plates: hairline key / value rows ----------------------------------------------- */

.c-plate { margin: 0; border-top: 1px solid var(--rule-2); }
.c-plate > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.c-plate dt { padding-top: 0.2rem; }
.c-plate dd { margin: 0; line-height: 1.5; }
.c-plate dd .c-fig { font-size: 0.9375rem; }

.c-about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.c-about .c-lede:first-child, .c-flush { margin-top: 0; }
.c-gap { margin-top: 2rem; }

/* --- the path: career as model years ------------------------------------------------------ */

.c-path { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.c-path li { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 0.5rem; padding: 1.25rem 1.1rem 1.5rem 0; }
.c-path li + li { padding-left: 1.1rem; border-left: 1px solid var(--rule); }
.c-path time { font: 400 clamp(1.75rem, 2.6vw, 2.5rem)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.c-path h3 { margin: 0.75rem 0 0; font: 600 1rem/1.3 var(--display); font-stretch: 112%; }
.c-path p { margin: 0.25rem 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.c-now {
  display: inline-block; margin-top: 0.85rem; padding: 0.25rem 0.5rem; border-radius: var(--radius);
  background: var(--sel); color: var(--sel-fg);
  font: 700 0.6875rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.18em; text-transform: uppercase;
}
.c-path li.is-now time { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

/* --- projects: one face out, the rest as spines ------------------------------------------- */

.c-count { display: flex; justify-content: flex-end; gap: 0.5ch; margin: 0 0 0.75rem; scroll-margin-top: 5.5rem; font: 400 clamp(1.125rem, 1.6vw, 1.5rem)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.c-count[hidden] { display: none; }
.c-count b { font-weight: 400; color: var(--ink); }
.c-roll { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.c-roll > span { display: block; transition: translate var(--clock) var(--ease); }
.c-roll > span > span { display: block; height: 1em; line-height: 1; }

.c-faces { margin: 0; padding: 0; list-style: none; }
.c-face {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule-2);
}
.c-face h3 {
  margin: 0;
  font: 700 clamp(1.875rem, 3.4vw, 3.25rem)/0.95 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.c-face .c-desc { max-width: 56ch; margin: 1.5rem 0 0; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink); text-wrap: pretty; }
.c-points { max-width: 62ch; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.c-points li { position: relative; padding: 0.35rem 0 0.35rem 1.5rem; }
.c-points li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 0.75rem; border-top: 1px solid var(--ink-3); }
.c-face .c-plate { align-self: start; }
.c-stack { font-family: var(--mono); font-size: 0.875rem; line-height: 1.6; }
.c-out {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem;
  font: 600 0.6875rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 0.55em;
  transition: text-decoration-color 200ms var(--ease);
}
.c-out:hover { text-decoration-color: var(--ink); }
.c-out svg { width: 1.1rem; transition: translate 200ms var(--ease); }
.c-out:hover svg { translate: 0.3rem 0; }

/* with script: one face at a time, chosen from the spines */
.c-lineup .c-face[hidden] { display: none; }
.c-lineup .c-face { border-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .c-lineup .c-face.is-arriving { animation: arrive var(--clock) var(--ease) both; }
  .c-lineup .c-face.is-arriving .c-plate { animation: arrive-late var(--clock) var(--ease) both; }
}
@keyframes arrive { from { clip-path: inset(0 100% 0 0); opacity: 0.4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes arrive-late { from { opacity: 0; translate: 1.5rem 0; } 40% { opacity: 0; } to { opacity: 1; translate: 0 0; } }

.c-spines { display: none; scroll-margin-top: 5.5rem; }
.c-lineup .c-spines {
  display: flex; gap: 0; margin-bottom: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.c-spines::-webkit-scrollbar { display: none; }
.c-spine {
  flex: 1 0 3.5rem; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1rem;
  height: clamp(9.5rem, 12vw, 11rem); padding: 0.85rem 0 0.8rem;
  background: transparent; border: 0; border-left: 1px solid var(--rule); cursor: pointer;
  color: var(--ink-2);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.c-spine:first-child { border-left: 0; }
.c-spine:hover { background: var(--plate); color: var(--ink); }
.c-spine[aria-selected='true'] { background: var(--sel); color: var(--sel-fg); }
.c-spine-name {
  writing-mode: vertical-rl; rotate: 180deg;
  font: 700 0.6875rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.c-spine-n { font: 400 0.75rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.c-spine:focus-visible { outline-offset: -4px; }
.c-spine[aria-selected='true']:focus-visible { outline-color: var(--sel-fg); }

.c-more { margin-top: 2rem; }

/* --- photography: proofs, grayscale until opened ------------------------------------------ */

.c-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 19vw, 17rem); gap: clamp(0.5rem, 1vw, 0.875rem); margin: 0; padding: 0; list-style: none; }
.c-gallery li { min-width: 0; }
.c-gallery .w8 { grid-column: span 8; grid-row: span 2; }
.c-gallery .w4 { grid-column: span 4; }
.c-gallery .w4t { grid-column: span 4; grid-row: span 2; }
.c-gallery .w6 { grid-column: span 6; grid-row: span 2; }
.c-gallery .w12 { grid-column: span 12; }
.c-proof {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); background: var(--plate); cursor: zoom-in; overflow: hidden;
}
.c-proof img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); scale: 1.0; transition: filter 0.6s var(--ease), scale var(--clock) var(--ease); }
.c-proof:hover img, .c-proof:focus-visible img { filter: none; scale: 1.03; }
.c-proof:focus-visible { outline-offset: 3px; }
.c-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.75rem; background: color-mix(in srgb, var(--bg) 84%, transparent); text-align: left;
}
.c-cap .c-fig { font-size: 0.75rem; color: var(--ink-3); }

.c-viewer { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--bg) 97%, transparent); color: var(--ink); }
.c-viewer::backdrop { background: rgb(0 0 0 / 0.9); }
.c-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.c-viewer-bar { display: flex; justify-content: flex-end; padding: 1rem var(--gutter); }
.c-viewer-frame { min-height: 0; margin: 0; padding-inline: var(--gutter); }
.c-viewer-frame img { width: 100%; height: 100%; object-fit: contain; }
.c-viewer p { margin: 0; padding: 1rem var(--gutter) 1.5rem; text-align: center; }
.c-btn {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem;
  background: transparent; border: 1px solid var(--rule-2); border-radius: var(--radius); cursor: pointer;
  font: 600 0.6875rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.c-btn:hover { background: var(--sel); color: var(--sel-fg); border-color: var(--sel); }

/* --- off the clock ------------------------------------------------------------------------ */

.c-offclock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.c-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-2); }
.c-links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: 1.25rem 0.25rem; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.c-links a > * { transition: translate 200ms var(--ease); }
.c-links a:hover, .c-links a:focus-visible { background: var(--sel); color: var(--sel-fg); outline: none; }
.c-links a:hover > span, .c-links a:focus-visible > span { translate: 0.75rem 0; }
.c-links a:hover > svg, .c-links a:focus-visible > svg { translate: -0.75rem 0; }
.c-links a:hover .c-sub, .c-links a:focus-visible .c-sub { color: var(--sel-fg); }
.c-links strong { display: block; font: 700 clamp(1.25rem, 2.2vw, 1.75rem)/1.1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; }
.c-links .c-sub { display: block; margin-top: 0.35rem; font-size: 0.9375rem; color: var(--ink-3); }
.c-links svg { width: 1.4rem; }

/* --- say hi ------------------------------------------------------------------------------- */

.c-close { padding-bottom: clamp(3rem, 6vw, 5rem); }
.c-hi { margin: 0; font: 800 clamp(3.5rem, 13vw, 13rem)/0.8 var(--display); font-stretch: 125%; letter-spacing: -0.04em; text-transform: uppercase; }
.c-email {
  display: inline-block; margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font: 500 clamp(1.25rem, 3.2vw, 2.5rem)/1.2 var(--display); font-stretch: 112%; letter-spacing: -0.01em;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule-2); text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 200ms var(--ease);
}
.c-email:hover { text-decoration-color: var(--ink); }
.c-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-2); }
.c-contacts a { display: block; padding: 1rem 1.25rem 1rem 0; text-decoration: none; }
.c-contacts li + li a { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.c-contacts .c-handle { display: block; margin-top: 0.4rem; font-size: 0.9375rem; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 0.3em; transition: text-decoration-color 200ms var(--ease); }
.c-contacts a:hover .c-handle { text-decoration-color: var(--ink); }
.c-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.c-foot a { text-decoration: none; }
.c-foot a:hover { color: var(--ink); }

/* --- inner pages -------------------------------------------------------------------------- */

.c-page main { padding-top: 4.25rem; }
.c-pagehead { padding-block: clamp(4rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem); }
.c-h1 { margin: 0; font: 800 clamp(2rem, 8.6vw, 9rem)/0.85 var(--display); font-stretch: 125%; letter-spacing: -0.035em; text-transform: uppercase; }
.c-entries { margin: 0; padding: 0; list-style: none; counter-reset: entry; }
.c-entry { display: grid; grid-template-columns: 4.5rem minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 4vw, 4rem); padding-block: clamp(2.25rem, 4vw, 3.25rem); border-top: 1px solid var(--rule-2); }
.c-entry.c-plain { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.c-entry > .c-fig { font-size: 0.875rem; color: var(--ink-3); padding-top: 0.5rem; }
.c-entry h2, .c-entry h3 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.5rem)/1 var(--display); font-stretch: 125%; letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; }
.c-entry .c-desc { margin: 1rem 0 0; max-width: 60ch; text-wrap: pretty; }
.c-entry .c-sub { display: block; margin-top: 0.6rem; }
.c-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0; border-top: 1px solid var(--rule-2); }
.c-skills > div { padding: 1.25rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--rule); }
.c-skills ul { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.c-skills li { font-family: var(--mono); font-size: 0.9375rem; line-height: 1.8; }
.c-back { margin-top: clamp(3rem, 6vw, 5rem); }

/* --- the studio light: the key light follows the pointer (or a tilt) ---------------------- */

.c-shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--lx, 50%) var(--ly, 24%), rgb(255 255 255 / 0.18), transparent 28%),
    radial-gradient(circle at var(--lx, 50%) var(--ly, 24%), transparent 24%, color-mix(in srgb, var(--bg) 66%, transparent) 70%);
  opacity: 0;
  transition: opacity var(--clock) var(--ease);
}
.c-hero.is-lighting .c-shot::after { opacity: 1; }
.c-light-hint { display: none; margin: 0 0 1rem; text-align: right; text-transform: none; letter-spacing: 0.01em; font-size: 0.8125rem; font-weight: 500; font-stretch: 100%; }
.c-hint-touch { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .c-light-hint { display: block; transition: opacity var(--clock) var(--ease); }
  .js .c-hero.is-lighting .c-light-hint { opacity: 0; }
}
@media (hover: none) {
  .c-hint-hover { display: none; }
  .c-hint-touch { display: inline; }
}

/* --- colorways: the themes as paint chips ------------------------------------------------- */

.c-paint { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 1rem); }
.c-chip {
  display: grid; gap: 0.35rem; align-content: start; padding: 0 0 0.5rem; min-width: 0;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink-2);
}
.c-chip-swatch {
  position: relative; display: block; aspect-ratio: 3 / 4; margin-bottom: 0.5rem; overflow: hidden;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  transition: translate 200ms var(--ease), outline-color 200ms var(--ease);
  outline: 2px solid transparent; outline-offset: 3px;
}
.c-chip-swatch > span { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; }
.c-chip-name { font: 700 0.875rem/1.1 var(--display); font-stretch: 125%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.c-chip-note { font-size: 0.875rem; line-height: 1.35; color: var(--ink-3); }
.c-chip:hover .c-chip-swatch { translate: 0 -0.35rem; }
.c-chip[aria-checked='true'] .c-chip-swatch { outline-color: var(--sel); }
.c-chip[aria-checked='true'] .c-chip-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: var(--sel); }
.c-chip:focus-visible { outline: none; }
.c-chip:focus-visible .c-chip-swatch { outline: 1px dashed var(--ink); }

/* the repaint sweeps out from where you clicked */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: c-repaint 900ms var(--ease) both; }
@keyframes c-repaint {
  from { clip-path: circle(0 at var(--sweep-x, 50%) var(--sweep-y, 50%)); }
  to { clip-path: circle(150vmax at var(--sweep-x, 50%) var(--sweep-y, 50%)); }
}

/* --- darkroom: prints develop out of black; a pass of the hand brings the color back ------- */

.c-proof { touch-action: pan-y; }
.c-proof .c-proof-color {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  filter: none; clip-path: inset(0 calc(100% - var(--wipe, 0%)) 0 0);
  transition: clip-path 420ms var(--ease), scale var(--clock) var(--ease);
}
.c-proof.is-wiping .c-proof-color { transition: scale var(--clock) var(--ease); }
.c-proof.has-wipe::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: var(--wipe, 0%); width: 1px;
  background: var(--ink); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease);
}
.c-proof.is-wiping::after { opacity: 0.85; }
.c-proof.has-wipe:hover > img:first-child { filter: grayscale(1) contrast(1.05); }
.c-proof.has-wipe:focus-visible { --wipe: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .has-darkroom .c-proof > img:first-child { filter: grayscale(1) brightness(0.04) contrast(1.6); transition: filter 2.4s var(--ease), scale var(--clock) var(--ease); }
  .has-darkroom .c-proof.is-developed > img:first-child { filter: grayscale(1) contrast(1.05); }
}

/* --- the visitor terminal: a row in the link list, and aligned output ---------------------- */

.c-links .c-linkbtn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; width: 100%;
  padding: 1.25rem 0.25rem; background: none; border: 0; border-bottom: 1px solid var(--rule);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.c-links .c-linkbtn > * { transition: translate 200ms var(--ease); }
.c-links .c-linkbtn:hover, .c-links .c-linkbtn:focus-visible { background: var(--sel); color: var(--sel-fg); outline: none; }
.c-links .c-linkbtn:hover > span, .c-links .c-linkbtn:focus-visible > span { translate: 0.75rem 0; }
.c-links .c-linkbtn:hover > svg, .c-links .c-linkbtn:focus-visible > svg { translate: -0.75rem 0; }
.c-links .c-linkbtn:hover .c-sub, .c-links .c-linkbtn:focus-visible .c-sub { color: var(--sel-fg); }
.c-links .c-linkbtn svg { width: 1.4rem; }
.c-guest .term-log > div { white-space: pre-wrap; }

/* --- theme menu --------------------------------------------------------------------------- */

.c-look-wrap { position: relative; }
.c-look {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; min-width: 2.75rem; justify-content: center; padding: 0 0.25rem;
  background: none; border: 0; cursor: pointer; color: var(--ink-2);
  font: 600 0.6875rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 200ms var(--ease);
}
.c-look:hover, .c-look[aria-expanded='true'] { color: var(--ink); }
.c-look svg { width: 1rem; height: 1rem; }
.c-looks {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 45; min-width: 13.5rem; margin: 0; padding: 0.35rem; list-style: none;
  background: var(--plate); border: 1px solid var(--rule-2); border-radius: var(--radius);
}
.c-looks[hidden] { display: none; }
.c-looks button {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 2.75rem; padding: 0 0.75rem;
  background: none; border: 0; border-radius: var(--radius); text-align: left; cursor: pointer; color: var(--ink-2);
  font: 600 0.6875rem/1 var(--display); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase;
}
.c-looks button:hover { color: var(--ink); }
.c-looks button[aria-checked='true'] { background: var(--sel); color: var(--sel-fg); }
.c-swatch { flex: none; width: 1.25rem; height: 1.25rem; border: 1px solid var(--rule-2); }

/* --- themes: the same catalogue in the dashboard's seven colorways ----------------------- */
/* mono is the default above. Every theme only sets tokens, plus the few rules tokens cannot say. */

:root[data-look='peya'] {
  --bg: #120e1a; --plate: #1b1526; --ink: #efeaf5; --ink-2: #d2c9e0; --ink-3: #ab9fc0;
  --rule: rgb(186 160 230 / 0.16); --rule-2: rgb(186 160 230 / 0.32);
  --sel: #e54b4b; --sel-fg: #14101c; --radius: 8px;
}
:root[data-look='matrix'] {
  --bg: #000000; --plate: #00120a; --ink: #5dff86; --ink-2: #44e06d; --ink-3: #2fbf5a;
  --rule: rgb(0 255 65 / 0.18); --rule-2: rgb(0 255 65 / 0.36);
  --sel: #00ff41; --sel-fg: #001a07; --radius: 0px;
  --display: var(--mono);
  --shot-filter: sepia(1) hue-rotate(70deg) saturate(2.4) brightness(0.92);
}
/* the mono face is narrower, so the name takes a larger size to span the same measure */
:root[data-look='matrix'] .c-name { font-size: clamp(2.25rem, calc(100cqi / 6.9), 13.5rem); }
@media (max-width: 760px) { :root[data-look='matrix'] .c-name { font-size: calc(100cqi / 4.6); } }
:root[data-look='kali'] {
  --bg: #0b0e15; --plate: #141822; --ink: #e6e9f1; --ink-2: #c4cada; --ink-3: #a1a9be;
  --rule: rgb(120 150 220 / 0.18); --rule-2: rgb(120 150 220 / 0.34);
  --sel: #367bf0; --sel-fg: #ffffff; --radius: 4px;
}
:root[data-look='hyprland'] {
  --bg: #11111b; --plate: #1e1e2e; --ink: #cdd6f4; --ink-2: #bac2de; --ink-3: #a6adc8;
  --rule: #313244; --rule-2: #585b70;
  --sel: #33ccff; --sel-fg: #11111b; --radius: 12px;
}
:root[data-look='parrot'] {
  --bg: #061017; --plate: #0d1922; --ink: #dfeaf2; --ink-2: #bccdd9; --ink-3: #95acbb;
  --rule: rgb(33 215 198 / 0.16); --rule-2: rgb(33 215 198 / 0.34);
  --sel: #21d7c6; --sel-fg: #03201d; --radius: 2px;
}
/* GR86 in Halo white: a light page, with the studio and the bar kept black like the car's stripe */
:root[data-look='gr86'] {
  --bg: #e4e7eb; --plate: #ffffff; --ink: #141416; --ink-2: #3a3e45; --ink-3: #555a62;
  --rule: rgb(20 20 22 / 0.12); --rule-2: rgb(20 20 22 / 0.26);
  --sel: #d40a1d; --sel-fg: #ffffff; --radius: 2px;
  color-scheme: light;
}
:root[data-look='gr86'] .c-hero, :root[data-look='gr86'] .c-bar {
  --bg: #0b0b0c; --plate: #161618; --ink: #f3f3f3; --ink-2: #c9c9cc; --ink-3: #a8a8ad;
  --rule: #2a2a2e; --rule-2: #3c3c41;
  color: var(--ink);
}
:root[data-look='gr86'] .c-bar.is-solid, :root[data-look='gr86'] .c-page .c-bar {
  background: var(--bg); border-bottom-color: transparent;
  box-shadow: inset 0 -3px 0 var(--sel), inset 0 -6px 0 #ffffff;
}
:root[data-look='gr86'] .c-h2, :root[data-look='gr86'] .c-h1, :root[data-look='gr86'] .c-face h3, :root[data-look='gr86'] .c-hi { font-style: italic; }

/* --- medium screens ----------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .c-paint { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.5rem; }
  .c-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c-path li:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
  .c-path li:nth-child(n + 5) { border-top: 1px solid var(--rule); }
  .c-face, .c-about, .c-offclock { grid-template-columns: minmax(0, 1fr); }
  .c-entry { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .c-entry > .c-plate { grid-column: 2; }
  .c-shot { translate: -42% 0; }
}

/* --- phones ------------------------------------------------------------------------------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .c-paint { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; row-gap: 1.25rem; }
  .c-chip-note { display: none; }
  .c-light-hint { text-align: left; }
  .c-bar .c-wrap { min-height: 3.5rem; }
  .c-nav { gap: 0.85rem; }
  .c-bar .c-wrap { gap: 0.75rem; }
  .c-logo { width: 2rem; height: 2rem; }
  .c-look-name { display: none; }
  .c-nav a { letter-spacing: 0.12em; }
  .c-nav li:last-child a { margin-right: -0.12em; }
  .c-nav .c-wide { display: none; }
  .c-nav a { padding: 0.85rem 0; }
  .c-hero { min-height: 100svh; grid-template-rows: minmax(0, 1fr) auto; }
  .c-shot { position: relative; grid-row: 1; left: auto; translate: none; height: auto; width: 100%; max-height: 64svh; margin-top: 3.5rem; aspect-ratio: auto; mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, #000 60%, transparent 98%); mask-composite: intersect; }
  .c-shot img { max-height: 64svh; }
  .c-hero-foot { grid-row: 2; margin-top: -3.5rem; }
  .c-name { font-size: calc(100cqi / 7); white-space: normal; line-height: 0.86; }
  .c-h2 { font-size: clamp(1.5rem, 7.4vw, 2.25rem); }
  .c-head { grid-template-columns: minmax(0, 1fr); }
  .c-head .c-count { grid-row: 2; }
  .c-spec-strip { grid-template-columns: minmax(0, 1fr); }
  .c-spec-strip > div, .c-spec-strip > div + div { padding: 0.75rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .c-plate > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .c-path { grid-template-columns: minmax(0, 1fr); }
  .c-path li, .c-path li + li { grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-rows: auto; padding: 1rem 0; border-left: 0; border-top: 1px solid var(--rule); }
  .c-path li > * { grid-column: 2; }
  .c-path li time { grid-column: 1; grid-row: 1 / span 3; font-size: 1.5rem; }
  .c-path h3 { margin-top: 0; }
  .c-spine { flex-basis: 3.25rem; height: 14.5rem; }
  .c-face h3 { font-size: clamp(1.375rem, 6.8vw, 1.875rem); }
  .c-gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .c-gallery li, .c-gallery .w8, .c-gallery .w4, .c-gallery .w4t, .c-gallery .w6, .c-gallery .w12 { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 2; }
  .c-gallery .w4t { aspect-ratio: 4 / 5; }
  .c-contacts { grid-template-columns: minmax(0, 1fr); }
  .c-contacts li + li a { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .c-entry, .c-entry.c-plain { grid-template-columns: minmax(0, 1fr); }
  .c-entry > .c-plate { grid-column: auto; }
  .c-links a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
