/* Live design file, v20 preview. A dark canvas like a design tool at night, cream type, sky blue for selection,
   a touch of wine red. Frames keep their own colours. */

@font-face { font-family: 'Geist'; src: url('../fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #181818;
  --bg-2: #1f1f1f;
  --panel: #272727;
  --panel-2: #313131;
  --text: #efe9dd;
  --text-2: rgba(239, 233, 221, 0.64);
  --cream: #efe9dd;
  --paper: #faf7f1;
  --ink: #2a2b2f;
  --ink-2: rgba(42, 43, 47, 0.66);
  --line: rgba(239, 233, 221, 0.1);
  --sky: #a8bfd6;
  --sky-soft: rgba(168, 191, 214, 0.18);
  --sky-deep: #4b6f97;
  --sel: #8fb3da;
  --wine: #a8484c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --hand: 'Bradley Hand', 'Segoe Print', 'Chalkboard SE', 'Geist', sans-serif;
  --pad: clamp(16px, 2.6vw, 36px);
  --rule: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
h1, h2, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- the stage ---------- */

.stage { position: relative; height: 1050svh; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: default; outline: none; }
.scene.is-grab { cursor: grab; }
.scene.is-grab:active { cursor: grabbing; }
.scene.is-point { cursor: pointer; }
.says { display: none; }

.ui { position: absolute; inset: 0; pointer-events: none; }
.ui button, .ui a { pointer-events: auto; }

/* rulers */
.ruler { position: absolute; z-index: 3; display: block; background: rgba(39, 39, 39, 0.92); }
.ruler-x { left: var(--rule); right: 0; top: 0; height: var(--rule); width: calc(100% - var(--rule)); box-shadow: inset 0 -1px 0 var(--line); }
.ruler-y { left: 0; top: var(--rule); bottom: 0; width: var(--rule); height: calc(100% - var(--rule)); box-shadow: inset -1px 0 0 var(--line); }
.ruler-corner { position: absolute; z-index: 3; left: 0; top: 0; width: var(--rule); height: var(--rule); background: var(--panel); box-shadow: inset -1px -1px 0 var(--line); }

/* frame names, above each frame */
.labels { position: absolute; inset: 0; }
.labels span { position: absolute; left: 0; top: 0; font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; will-change: transform; transition: color 200ms ease; }
.labels span.is-on { color: var(--sel); font-weight: 600; }
.labels span.is-hover { color: var(--sel); }
.hov { position: absolute; left: 0; top: 0; border: 1px solid var(--sel); pointer-events: none; opacity: 0; will-change: transform, opacity; transition: opacity 150ms ease; }

.who { position: absolute; left: calc(var(--pad) + var(--rule)); bottom: var(--pad); max-width: 40vw; will-change: opacity; }
.who h1 { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -0.01em; }
.who p { font-size: 14px; line-height: 20px; color: var(--text-2); }

.scrollcue { position: absolute; z-index: 2; right: var(--pad); bottom: var(--pad); display: flex; align-items: center; gap: 14px; font-size: 13px; line-height: 20px; }
.scrollcue span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--text); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-5px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
.link { padding: 8px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.endnote { position: absolute; left: 50%; bottom: var(--pad); transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 18px; opacity: 0; transition: opacity 300ms ease; }
.endnote.is-on { opacity: 1; }
.loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 999px; background: var(--panel); font-size: 13px; transition: opacity 300ms ease; }
.is-ready .loading { opacity: 0; }

/* ---------- the selection box ---------- */

.sel { position: absolute; left: 0; top: 0; border: 1.5px solid var(--sel); pointer-events: none; will-change: transform, opacity; }
.sel .h { position: absolute; width: 9px; height: 9px; margin: -5px 0 0 -5px; border: 1.5px solid var(--sel); background: var(--bg); }
.sel-size { position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); padding: 2px 7px; border-radius: 4px; background: var(--sky-deep); color: #fff; font: 600 11px/18px var(--mono); white-space: nowrap; }

/* ---------- panels ---------- */

.file { position: absolute; inset: 0; pointer-events: none; }
.panel { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 224px; padding: 10px; border-radius: 16px; background: rgba(39, 39, 39, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 0 0 1px var(--line), 0 18px 44px -22px rgba(0, 0, 0, 0.6); pointer-events: auto; font-size: 13px; line-height: 18px; will-change: opacity; transition: opacity 300ms ease, visibility 0s 300ms; }
.panel.is-off { opacity: 0; visibility: hidden; }
.panel:not(.is-off) { transition: opacity 300ms ease; }
.layers { left: calc(var(--pad) + var(--rule)); }
.inspect { right: var(--pad); width: 276px; }
.panel-h { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.inspect .panel-h { color: var(--text); font-size: 13px; }
.panel-h span { margin-left: auto; font-weight: 400; color: var(--text-2); font-size: 12px; }
.panel-h b { font-weight: 600; }
.panel-h svg { flex: none; }

/* the layers panel is the navbar: the name, the pages, then the frames of this page */
.brand { display: flex; align-items: baseline; gap: 8px; padding: 4px 8px 10px; }
.brand a { color: var(--text); font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.brand span { margin-left: auto; font-size: 12px; color: var(--text-2); }
.panel-sub { padding: 8px 8px 4px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
.pages { padding-bottom: 6px; }
.pages a.layer-row { color: var(--text); text-decoration: none; transition: background-color 200ms ease; }
.pages a.layer-row.is-on { font-weight: 600; }
@media (hover: hover) { .pages a.layer-row:hover { background: rgba(239, 233, 221, 0.06); } }
.layer-row.is-later em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-2); }
.layer-row.is-later { color: rgba(239, 233, 221, 0.42); }
.chip { position: absolute; z-index: 5; left: 0; top: 0; padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; scale: 0.9; transition: opacity 150ms ease, scale 200ms var(--ease); will-change: transform; }
.chip.is-on { opacity: 1; scale: 1; }
.plain li strong a { color: inherit; text-decoration: none; }
@media (hover: hover) { .plain li strong a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* layers: the frames of the file, with the open frame's own layers under it */
.layer-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--text-2); white-space: nowrap; text-align: left; font-size: 13px; }
button.layer-row { cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease); }
button.layer-row:active { transform: scale(0.98); }
@media (hover: hover) { button.layer-row:hover { background: rgba(239, 233, 221, 0.06); } }
.layer-row svg { flex: none; }
.layer-row b { font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.frames > li > .layer-row { color: var(--text); }
.frames > li.is-on > .layer-row { background: var(--sky-soft); font-weight: 600; }
.frames > li.is-on > .layer-row b { color: var(--text); font-weight: 600; }
.kids { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease); }
.kids > div { overflow: hidden; min-height: 0; }
.frames > li.is-open .kids { grid-template-rows: 1fr; }
.kids .layer-row { padding-left: 26px; height: 30px; }
.modes button { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px 0 26px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; font-size: 13px; transition: background-color 200ms ease, transform 160ms var(--ease); }
.modes button[aria-checked='true'] { background: var(--sky); color: var(--bg); font-weight: 600; }
.modes button em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-2); font-weight: 400; }
.modes button.is-hover:not([aria-checked='true']) { background: rgba(168, 191, 214, 0.16); }
@media (hover: hover) { .modes button:not([aria-checked='true']):hover { background: rgba(168, 191, 214, 0.16); } }
.modes button:active { transform: scale(0.97); }
.modes svg { flex: none; }

/* the inspector: about me, or the project in view */
.props-h { margin-top: 6px; padding: 10px 8px 4px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
.prop { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; transition: background-color 200ms ease; }
.prop[aria-expanded='true'] { background: rgba(239, 233, 221, 0.06); }
@media (hover: hover) { .prop:hover { background: rgba(239, 233, 221, 0.06); } }
.prop-top { display: flex; align-items: baseline; gap: 10px; }
.prop .k { flex: none; width: 80px; font-size: 12px; color: var(--text-2); }
.prop .v { min-width: 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.prop .line { display: grid; grid-template-rows: 0fr; font-size: 12px; line-height: 17px; color: var(--text-2); transition: grid-template-rows 300ms var(--ease); }
.prop .line > i { overflow: hidden; min-height: 0; padding-left: 90px; font-style: normal; }
.prop[aria-expanded='true'] .line { grid-template-rows: 1fr; }
.prop[aria-expanded='true'] .line > i { padding-top: 4px; }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; background: var(--sky); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); vertical-align: -1px; }
[data-scrub] { cursor: ew-resize; touch-action: none; border-bottom: 1px dashed rgba(239, 233, 221, 0.4); }

.insp[hidden] { display: none; }
.w-title { padding: 2px 8px 0; font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.w-line { padding: 6px 8px 0; font-size: 14px; line-height: 20px; color: var(--text-2); text-wrap: pretty; }
.w-rows { margin-top: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.w-rows div { display: flex; align-items: baseline; gap: 10px; padding: 5px 8px; }
.w-rows dt { flex: none; width: 80px; font-size: 12px; color: var(--text-2); }
.w-rows dd { font-size: 13px; font-weight: 600; font-family: var(--font); }
.w-actions { display: flex; align-items: center; gap: 8px; padding: 10px 8px 4px; border-top: 1px solid var(--line); }
.w-hint { padding: 6px 8px 2px; font-size: 12px; line-height: 16px; color: var(--text-2); }
.round { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(239, 233, 221, 0.08); cursor: pointer; transition: transform 160ms var(--ease), background-color 200ms ease; }
.round:active { transform: scale(0.94); }
.round:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) { .round:not(:disabled):hover { background: rgba(239, 233, 221, 0.14); } }
.cta { display: inline-flex; align-items: center; height: 44px; margin-left: auto; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease), background-color 200ms ease; }
.cta:active { transform: scale(0.97); }
@media (hover: hover) { .cta:hover { background: #fff; } }

/* ---------- cursors ---------- */

.cur { position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; will-change: transform; transition: opacity 300ms ease; }
.cur svg { display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18)); transition: transform 120ms var(--ease); transform-origin: 3px 2px; }
.cur-w svg path { fill: var(--wine); stroke: var(--cream); }
.cur.is-click svg { transform: scale(0.8); }
.cur-name { position: absolute; left: 15px; top: 17px; padding: 2px 8px; border-radius: 4px 10px 10px 10px; background: var(--wine); color: var(--cream); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.cur-you .cur-name { left: 10px; top: 12px; background: var(--text); color: var(--bg); }
.cur-say { position: absolute; left: 15px; top: 42px; width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 10px 26px -12px rgba(0, 0, 0, 0.35); font-size: 13px; line-height: 18px; opacity: 0; transform: translateY(-4px) scale(0.96); transform-origin: 0 0; transition: opacity 250ms ease, transform 300ms var(--ease); }
.cur-say.is-on { opacity: 1; transform: none; }
.cur.is-left .cur-say { left: auto; right: -4px; border-radius: 14px 4px 14px 14px; transform-origin: 100% 0; }
.cur.is-left .cur-name { left: auto; right: 2px; border-radius: 10px 4px 10px 10px; }
.cur-say:empty { display: none; }

/* ---------- the navbar: a small pill that opens into the list of frames ---------- */

.pill { display: none; position: fixed; left: 50%; top: calc(var(--rule) + 12px); z-index: 20; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); border-radius: 24px; background: rgba(39, 39, 39, 0.72); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -14px rgba(0, 0, 0, 0.6); overflow: hidden; }
.pill-bar { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 16px 0 14px; border: 0; background: none; cursor: pointer; font-size: 14px; letter-spacing: -0.01em; }
.pill-bar:active .pill-icon { transform: scale(0.9); }
.pill-icon { flex: none; transition: transform 160ms var(--ease); }
.pill-name { font-weight: 700; letter-spacing: 0.02em; }
.pill-sep { width: 1px; height: 16px; background: rgba(239, 233, 221, 0.22); }
.pill-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill-chev { flex: none; margin-left: auto; transition: transform 300ms var(--ease); }
.pill-bar[aria-expanded='true'] .pill-chev { transform: rotate(180deg); }
.pill-menu { width: min(320px, calc(100vw - 24px)); padding: 2px 8px 10px; animation: menu 320ms var(--ease); }
.pill-menu[hidden] { display: none !important; }
@keyframes menu { from { opacity: 0; transform: translateY(-6px); } }
.pill-h { padding: 6px 10px 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.pill-frames button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: 15px; cursor: pointer; }
.pill-frames button[aria-current='true'] { background: var(--sky-soft); font-weight: 600; }
@media (hover: hover) { .pill-frames button:hover { background: rgba(239, 233, 221, 0.06); } }
.pill-frames i { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
.pill-frames b { flex: none; width: 20px; font-weight: 400; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pill-pages { display: flex; gap: 6px; margin-top: 6px; padding: 10px 10px 0; border-top: 1px solid var(--line); }
.pill-pages li { display: flex; align-items: baseline; gap: 5px; margin-right: 10px; font-size: 13px; color: var(--text-2); }
.pill-pages em { font-style: normal; font-size: 11px; opacity: 0.7; }

/* ---------- the plain list, for everyone and every device ---------- */

.plain { position: relative; z-index: 1; padding: clamp(56px, 9vw, 120px) var(--pad) 120px; background: var(--bg-2); }
.plain h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.plain ol { margin-top: 32px; border-top: 1px solid var(--line); }
.plain li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.plain li:target { background: var(--sky-soft); }
.plain li b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plain li b::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
.plain li strong { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.plain li span { font-size: 16px; line-height: 24px; color: var(--text-2); }
.note { max-width: 62ch; margin-top: 32px; font-size: 14px; line-height: 20px; color: var(--text-2); }

/* ---------- phones and tall screens ---------- */

@media (max-width: 767px), (max-aspect-ratio: 21/20) {
  :root { --rule: 0px; }
  .ruler, .ruler-corner, .cur-you, .sel-size, .w-hint { display: none; }
  .pill { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column-reverse; }
  .brand, .panel-sub, .pages { display: none; }
  .pill-menu { display: flex; flex-direction: column-reverse; animation-name: menu-up; padding: 10px 8px 4px; }
  .pill-pages { margin-top: 0; margin-bottom: 6px; padding: 0 10px 10px; border-top: 0; border-bottom: 1px solid var(--line); }
  .pill-h { display: none; }
  .pill-chev { transform: rotate(180deg); }
  .pill-bar[aria-expanded='true'] .pill-chev { transform: none; }
  .who { left: var(--pad); right: 120px; top: calc(var(--pad) + 2px); bottom: auto; max-width: none; }
  .scrollcue { top: calc(var(--pad) + 2px); bottom: auto; right: var(--pad); flex-direction: column; align-items: flex-end; gap: 0; }
  .endnote { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .labels span { font-size: 11px; }

  /* the hero: the three modes as one pill, the about-me bits as a row of chips */
  .layers { top: auto; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); left: 50%; width: max-content; padding: 4px; border-radius: 999px; transform: translateX(-50%); }
  .layers .panel-h, .frames > li > .layer-row, .frames > li:not([data-f='0']), .kids .layer-row { display: none; }
  .frames > li .kids { grid-template-rows: 1fr; }
  .modes { display: flex; gap: 2px; }
  .modes button { width: auto; height: 36px; padding: 0 14px; border-radius: 999px; }
  .modes button em { display: none; }
  .inspect { top: auto; bottom: calc(122px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; width: auto; padding: 0 var(--pad); transform: none; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  .insp-me .panel-h, .props-h { display: none; }
  .props { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; pointer-events: auto; }
  .props::-webkit-scrollbar { display: none; }
  .prop { flex: none; width: auto; max-width: 210px; padding: 6px 10px; border-radius: 12px; background: rgba(39, 39, 39, 0.9); box-shadow: 0 0 0 1px var(--line); }
  .prop-top { display: block; }
  .prop .k { display: block; width: auto; font-size: 11px; line-height: 14px; }
  .prop .line > i { padding-left: 0; }

  /* a project: one card at the bottom */
  .sticky[data-mode='work'] .inspect { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; padding: 10px; border-radius: 18px; background: rgba(39, 39, 39, 0.92); box-shadow: 0 0 0 1px var(--line), 0 18px 44px -22px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); pointer-events: auto; }
  .insp-work .panel-h { padding-bottom: 2px; }
  .w-title { font-size: 22px; line-height: 26px; }
  .w-rows { display: none; }
  .w-actions { margin-top: 10px; }
  .plain li { grid-template-columns: 56px minmax(0, 1fr); }
  .plain li span { grid-column: 2; }
  .plain { padding-bottom: 140px; }
}
@keyframes menu-up { from { opacity: 0; transform: translateY(6px); } }

/* ---------- no 3D ---------- */

.no-gl .stage { height: auto; }
.no-gl .sticky { position: relative; height: auto; min-height: 100svh; padding: 120px var(--pad) 80px; }
.says-me { display: block; width: min(320px, 70vw); height: auto; margin-bottom: 24px; }
.no-gl .says { display: block; font-size: clamp(40px, 9vw, 130px); line-height: 0.95; font-weight: 600; letter-spacing: -0.045em; }
.no-gl .scene, .no-gl .scrollcue, .no-gl .loading, .no-gl .file, .no-gl .ruler, .no-gl .ruler-corner, .no-gl .labels, .no-gl .sel, .no-gl .cur, .no-gl .endnote { display: none; }
.no-gl .ui { position: static; }
.no-gl .who { position: static; margin-top: 32px; max-width: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ---------- drawing on the file: the shapes, the selection, the toolbar ---------- */

.drawroot { position: absolute; inset: 0; z-index: 1; }
.dr { pointer-events: none; }
.dr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dr-shape { pointer-events: visible; cursor: move; }
.dr-texts { position: absolute; inset: 0; pointer-events: none; }
.dr-text { position: absolute; left: 0; top: 0; min-width: 0.4em; padding: 0 0.04em; font: 600 100px/1.02 var(--font); letter-spacing: -0.045em; white-space: pre; transform-origin: 0 0; pointer-events: auto; cursor: move; outline: none; user-select: none; -webkit-user-select: none; }
.dr-text.is-edit { cursor: text; user-select: text; -webkit-user-select: text; box-shadow: 0 0 0 3px var(--sel); }
.dr.is-drawing .dr-shape, .dr.is-drawing .dr-text { pointer-events: none; }
.dr-capture { position: absolute; inset: 0; pointer-events: none; touch-action: none; }
.dr.is-drawing .dr-capture { pointer-events: auto; cursor: crosshair; }
.dr[data-tool='text'] .dr-capture { cursor: text; }
.dr-sel { position: absolute; left: 0; top: 0; display: none; border: 1.5px solid var(--sel); pointer-events: none; }
.dr-sel i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1.5px solid var(--sel); background: var(--bg); pointer-events: auto; }
.dr-sel i::after { content: ''; position: absolute; inset: -12px; }
.dr-sel i[data-h='0'] { left: 0; top: 0; cursor: nwse-resize; }
.dr-sel i[data-h='1'] { left: 100%; top: 0; cursor: nesw-resize; }
.dr-sel i[data-h='2'] { left: 0; top: 100%; cursor: nesw-resize; }
.dr-sel i[data-h='3'] { left: 100%; top: 100%; cursor: nwse-resize; }
.dr-size { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); padding: 2px 7px; border-radius: 4px; background: var(--sky-deep); color: #fff; font: 600 11px/18px var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sticky.is-tool .cur-w { opacity: 0 !important; }

.sel-size { font-variant-numeric: tabular-nums; }

/* the toolbar: dark, at the bottom, like in Figma */
.toolbar { position: absolute; z-index: 6; left: 50%; bottom: 20px; transform: translateX(-50%); pointer-events: auto; }
.dr-bar { display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 16px; background: var(--panel-2); color: var(--cream); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.dr-group { display: flex; align-items: center; gap: 2px; }
.dr-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease); }
.dr-btn:active { transform: scale(0.94); }
@media (hover: hover) { .dr-btn:hover:not([aria-pressed='true']) { background: rgba(255, 255, 255, 0.1); } }
.dr-btn[aria-pressed='true'] { background: var(--sky-deep); }
.dr-btn.is-hint { box-shadow: 0 0 0 2px var(--sky); }
.dr-sep { width: 1px; height: 24px; margin: 0 6px; background: rgba(255, 255, 255, 0.16); }
.dr-colors { gap: 6px; padding: 0 4px; }
.dr-color { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); cursor: pointer; transition: transform 160ms var(--ease), box-shadow 150ms ease; }
.dr-color[aria-checked='true'] { box-shadow: 0 0 0 2px var(--panel-2), 0 0 0 4px var(--cream); }
@media (hover: hover) { .dr-color:hover { transform: scale(1.12); } }
.scrollcue { bottom: calc(var(--pad) + 4px); }

@media (max-width: 767px), (max-aspect-ratio: 21/20) {
  .toolbar { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .dr-btn { width: 38px; height: 38px; }
  .dr-btn[data-tool='ellipse'], .dr-btn[data-act='clear'] { display: none; }
  .dr-color { width: 20px; height: 20px; }
  .dr-sep { margin: 0 3px; }
  .dr-colors { gap: 5px; padding: 0 2px; }
  .inspect { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
  /* Photo and Build move up to the top right */
  .layers { top: calc(var(--pad) - 2px); bottom: auto; left: auto; right: var(--pad); transform: none; }
  .scrollcue { display: none; }
  .who { right: 190px; }
  .sticky[data-mode='work'] .toolbar { display: none; }
}
.sticky[data-mode='hero'] .sel-size { bottom: 12px; }

/* the page change: a colour that fills the screen */
.tr { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; text-align: center; pointer-events: auto; }
.tr .tr-t { font: 600 clamp(48px, 8vw, 128px)/1 var(--font); letter-spacing: -0.045em; text-wrap: balance; }

/* ---------- v20: the hero without tools, the looks, the Playground link ---------- */

.who { max-width: min(40vw, 460px); }
.who .who-tag { margin-bottom: 12px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); text-wrap: balance; }
.layers { top: calc(var(--rule) + 16px); transform: none; max-height: calc(100svh - var(--rule) - 210px); overflow-y: auto; scrollbar-width: none; }
.layers::-webkit-scrollbar { display: none; }
.pages a.layer-row em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-2); }
.looks-h { display: flex; align-items: center; height: 30px; padding: 0 2px 0 26px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.looks-play { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease); }
.looks-play:active { transform: scale(0.92); }
@media (hover: hover) { .looks-play:hover { background: rgba(239, 233, 221, 0.08); } }
.modes button { position: relative; color: var(--text); }
.look-bar { position: absolute; left: 26px; right: 10px; bottom: 4px; height: 2px; border-radius: 1px; background: rgba(24, 24, 24, 0.3); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity 200ms ease; }
.modes.is-playing button.is-run .look-bar { opacity: 1; }
.sticky[data-mode='hero'] .sel-size { bottom: 12px; }

@media (max-width: 767px), (max-aspect-ratio: 21/20) {
  .who { right: var(--pad); max-width: none; }
  .who .who-tag { margin-bottom: 8px; font-size: 30px; line-height: 36px; }
  .layers { top: auto; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); left: 50%; right: auto; transform: translateX(-50%); max-height: none; overflow: visible; }
  .looks-h { display: none; }
  .modes button { padding: 0 12px; }
  .modes button svg { display: none; }
  .look-bar { left: 12px; right: 12px; bottom: 5px; }
  .inspect { bottom: calc(122px + env(safe-area-inset-bottom, 0px)); }
  .pill-pages a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
}
.pill-pages a { color: var(--text); }
/* near the bottom, Wilson's words sit above his cursor */
.cur.is-up .cur-say { top: auto; bottom: 8px; transform-origin: 0 100%; }
.cur.is-up .cur-name { top: auto; bottom: -20px; }

/* ---------- the sketch layer: pencil lines and handwriting next to the clean digital parts ---------- */
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
.sk { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: sk-draw 1100ms var(--ease) 400ms forwards; }
.sk + .sk { animation-delay: 700ms; }
.sk + .sk + .sk { animation-delay: 950ms; }
.sk + .sk + .sk + .sk { animation-delay: 1150ms; }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; stroke-dashoffset: 0; } }
.who .who-tag { position: relative; display: inline-block; }
.who-line { position: absolute; left: 44%; right: -6px; bottom: -9px; width: auto; height: 12px; color: var(--wine); overflow: visible; }
.who-line .sk { stroke-width: 2.500; vector-effect: non-scaling-stroke; }

/* what the look in view means: it shows for a moment each time the portrait changes */
.look-tag { position: absolute; right: 12px; top: 12px; display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(24, 24, 24, 0.78); color: var(--text); font-size: 13px; line-height: 20px; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(-4px); transition: opacity 260ms ease, transform 260ms var(--ease); }
.look-tag.is-on { opacity: 1; transform: none; }
.look-tag b { font: 600 11px/20px var(--mono); color: var(--sel); }
.look-tag span { font-weight: 600; }
.look-tag em { font-style: normal; color: var(--text-2); }
.sticky:not([data-mode='hero']) .look-tag, .sticky:not([data-mode='hero']) .hero-note { display: none; }
.hero-note { position: absolute; right: calc(100% + 10px); bottom: 24%; margin: 0; color: var(--text); font-size: 19px; line-height: 22px; text-align: right; white-space: nowrap; transform: rotate(-5deg); }
.hero-note svg { display: block; margin: 2px 0 0 auto; color: var(--sel); }
@media (max-width: 1279px), (hover: none) { .hero-note { display: none; } }
@media (max-width: 767px), (max-aspect-ratio: 21/20) {
  .look-tag { right: 8px; top: 8px; }
  .look-tag em { display: none; }
}

/* why the picture changes: said in the panel, and on the picture all the time */
.look-bar { display: none; }
.looks-why { margin: 0; padding: 0 8px 8px 26px; font-size: 12px; line-height: 16px; color: var(--text-2); white-space: normal; text-wrap: pretty; }
.modes button em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 400; opacity: 0.7; }
@media (max-width: 767px), (max-aspect-ratio: 21/20) { .looks-why, .modes button em { display: none; } .look-tag em { display: inline; } .look-tag span { display: none; } }
.modes button[aria-checked='true'] em { color: inherit; opacity: 0.75; }

/* ---------- start-up ---------- */
.is-booting { overflow: hidden; }

/* no play and pause button: click a look to keep it, click it again to let them run */
.looks-play { display: none; }

/* ---------- the finishing layer ---------- */
/* a fine paper grain over every page, so the flat dark does not look like plastic */
body::after { content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* headings rise out of a mask, word by word */
.rise-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rise-w > span { display: inline-block; transform: translateY(110%); transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i) * 55ms); }
.is-up .rise-w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .rise-w > span { transform: none; transition: none; } }
[data-magnet] { will-change: translate; }

/* the index of projects: big rows, the others step back, a picture follows the cursor */
.plain { padding-top: clamp(72px, 10vw, 140px); }
.plain-k, .foot-k { margin: 0 0 16px; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sel); }
.plain h2 { font-size: clamp(48px, 9vw, 128px); letter-spacing: -0.05em; }
.plain ol { margin-top: clamp(32px, 5vw, 64px); }
.plain li { grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) auto 40px; align-items: center; padding: clamp(18px, 2.4vw, 32px) 0; transition: opacity 300ms ease, padding 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.plain li strong { font-size: clamp(24px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.04em; }
.plain li em { font: 500 12px/16px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); white-space: nowrap; }
.plain li i { display: grid; place-items: center; color: var(--text); opacity: 0; transform: translate(-10px, 10px); transition: opacity 300ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.plain li strong a::after { content: ''; position: absolute; inset: 0; }
.plain li { position: relative; }
@media (hover: hover) {
  .plain ol:hover li { opacity: 0.32; }
  .plain ol:hover li:hover { opacity: 1; padding-left: 16px; }
  .plain li:hover i { opacity: 1; transform: none; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 320px; aspect-ratio: 4 / 3; padding: 14px; border-radius: 10px; background: var(--c, #a8bfd6); pointer-events: none; opacity: 0; scale: 0.86; transition: opacity 250ms ease, scale 500ms cubic-bezier(0.22, 1, 0.36, 1), background-color 300ms ease; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.peek.is-on { opacity: 1; scale: 1; }
.peek img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 4px; }
@media (hover: none) { .peek { display: none; } }

/* the end of the page */
.foot { position: relative; z-index: 1; padding: clamp(72px, 10vw, 140px) var(--pad) 32px; background: var(--bg); overflow: hidden; }
.foot-big { max-width: 16ch; margin: 0; font-size: clamp(40px, 7.4vw, 112px); line-height: 0.98; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(32px, 5vw, 64px); }
.foot-cta { gap: 10px; height: 60px; margin: 0; padding: 0 28px; font-size: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; transition: box-shadow 300ms ease, background-color 300ms ease; }
.foot-links a svg { color: var(--text-2); transition: transform 300ms var(--ease), color 300ms ease; }
.foot-links a:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; }
.foot-end a { position: relative; color: var(--text); font-size: 16px; line-height: 24px; text-decoration: none; }
.foot-end a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .foot-end a:hover::after { transform: scaleX(1); transform-origin: 0 50%; } .foot-links a:hover { box-shadow: inset 0 0 0 1px var(--text-2); background: rgba(239, 233, 221, 0.05); } .foot-links a:hover svg { color: var(--text); transform: translate(2px, -2px); } }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--text-2); }
.foot .note { margin-top: 24px; max-width: 720px; font-size: 12px; line-height: 16px; color: var(--text-2); opacity: 0.7; }
@media (max-width: 767px) {
  .plain li { grid-template-columns: 36px minmax(0, 1fr) 28px; }
  .plain li span, .plain li em { display: none; }
  .plain li i { opacity: 1; transform: none; }
  .foot { padding-bottom: 96px; }
  .foot-links { margin-left: 0; }
}

/* where the device has no handwriting font, the notes fall back to the site font, a little lighter */
.hand { font-weight: 500; letter-spacing: -0.01em; }

/* on the hero Wilson stands alone: the names of the other frames wait until you scroll */
.sticky[data-mode='hero'] .labels span:not(.is-on) { opacity: 0; }
.labels span { transition: opacity 300ms ease; }

/* ---------- the tagline: every word lights up as you scroll ---------- */
.say { position: relative; z-index: 1; padding: clamp(96px, 16vw, 220px) var(--pad); background: var(--bg); }
.say-t { max-width: 1100px; margin: 0; font-size: clamp(36px, 7.2vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.say-l { display: block; }
.say-t .say-l > span { opacity: 0.22; transition: opacity 500ms var(--ease); }
.say-t .say-l > span.is-lit { opacity: 1; }
.say-t .say-l > span.is-red { color: var(--wine); }
.say-s { max-width: 520px; margin: clamp(32px, 5vw, 64px) 0 0; font-size: 18px; line-height: 28px; color: var(--text-2); text-wrap: pretty; }

/* ---------- what I do: three components, like in a design file ---------- */
.does { position: relative; z-index: 1; padding: clamp(56px, 9vw, 120px) var(--pad); background: var(--bg-2); }
.does h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.does-list { margin: 40px 0 0; border-top: 1px solid var(--line); }
.does-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.does-list strong { font-size: clamp(30px, 4.4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.does-list p { max-width: 440px; font-size: 18px; line-height: 28px; color: var(--text-2); text-wrap: pretty; }
.does-list span { font-family: var(--mono); font-size: 13px; line-height: 24px; color: var(--text-2); }
@media (max-width: 900px) { .does-list li { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; } }

/* ---------- quick find: jump anywhere with the keyboard ---------- */
.brand .kbtn { display: none; }
@media (hover: hover) and (pointer: fine) {
  .brand .kbtn { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-left: auto; padding: 0 8px; border: 0; border-radius: 6px; background: rgba(239, 233, 221, 0.07); color: var(--text-2); font: 500 12px/16px var(--font); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease); }
  .brand .kbtn:hover { background: rgba(239, 233, 221, 0.13); color: var(--text); }
  .brand .kbtn:active { transform: scale(0.97); }
  .brand .kbtn kbd { font: 500 11px/16px var(--mono); }
  .brand .kbtn + span { display: none; }
}
.cmdk { width: min(560px, calc(100vw - 32px)); max-height: min(520px, 70vh); margin: 14vh auto auto; padding: 0; border: 0; border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.7); overflow: hidden; opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 180ms ease, transform 240ms var(--ease), overlay 240ms allow-discrete, display 240ms allow-discrete; }
.cmdk[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style { .cmdk[open] { opacity: 0; transform: translateY(8px) scale(0.98); } }
.cmdk::backdrop { background: rgba(0, 0, 0, 0.5); }
.cmdk input { flex: none; width: 100%; height: 56px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: 500 16px/24px var(--font); outline: none; }
.cmdk input::placeholder { color: var(--text-2); }
.cmdk ul { flex: 1; min-height: 0; margin: 0; padding: 8px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.cmdk li { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cmdk li small { margin-left: auto; font: 500 11px/16px var(--mono); color: var(--text-2); }
.cmdk li i { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--text-2)); }
.cmdk li[aria-selected='true'] { background: rgba(143, 179, 218, 0.16); }
.cmdk .cmdk-none { justify-content: center; color: var(--text-2); cursor: default; }
.cmdk-foot { flex: none; display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); font: 500 11px/16px var(--mono); color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .cmdk { transition: none; } .say-t .say-l > span { transition: none; } }

/* ---------- calm pass: a minimal, professional file. No handwriting, no scribbles, one accent ---------- */
.hero-note, .who-line, .pc-note, .cur-w { display: none !important; }
.hand { font-family: var(--mono); font-size: 13px !important; line-height: 20px !important; letter-spacing: 0.02em; transform: none !important; opacity: 0.7; }
.hand svg { display: none; }
.say-t .say-l > span.is-red { color: inherit; }
button, a, [role='option'] { touch-action: manipulation; }
.cmdk li small, .pp-count, .pc-zval { font-variant-numeric: tabular-nums; }

/* the hero says what to do next: one main action, one quiet one */
.who-go { display: flex; align-items: center; gap: 20px; margin-top: 20px; pointer-events: auto; }
.who-go .cta { margin: 0; border: 0; cursor: pointer; font-family: inherit; }
.who-link { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 0; box-shadow: inset 0 -1px 0 transparent; transition: color 200ms ease; }
@media (hover: hover) { .who-link:hover { color: var(--sel); } .who-go .cta:hover { background: #fff; } }
.who h1 { font-size: 15px; line-height: 22px; }
.who p { font-size: 15px; line-height: 22px; }
@media (max-width: 1023px) { .who-go { display: none; } }
@media (min-width: 1024px) { .layers { max-height: calc(100svh - var(--rule) - 290px); } }

.who .who-open { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 12px/16px var(--mono); letter-spacing: 0.02em; color: var(--text); }
.who-open i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
@media (max-width: 1023px) { .who .who-open { display: none; } }

/* ---------- simpler home screen: one portrait, one short menu, one action ---------- */
:root { --rule: 0px; }
.ruler, .ruler-corner, .sel-size, .insp-me, .looks-h, .looks-why, .kids p.layer-row, .who .who-open { display: none !important; }
.inspect:has(.insp-work[hidden]) { display: none; }
.layers .panel-sub { margin-top: 12px; }
.modes button em { display: none; }
@media (min-width: 1024px) { .layers { max-height: none; } }
@media (min-width: 1024px) { .layers { top: var(--pad); width: 240px; } .inspect { top: var(--pad); transform: none; } }

/* ---------- selected work: big frames, then more work small ---------- */
.work { position: relative; z-index: 1; padding: clamp(72px, 10vw, 140px) var(--pad) clamp(72px, 9vw, 120px); background: var(--bg-2); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.work h2 { margin: 0; font-size: clamp(36px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.work-links { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.work-links a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 200ms ease, transform 160ms var(--ease); }
.work-links a:active, .work-small a:active { transform: scale(0.97); }
@media (hover: hover) { .work-links a:hover { background: var(--panel-2); } }
.work-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) 24px; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; list-style: none; }
.wk { position: relative; }
.wk.is-lead { grid-column: 1 / -1; }
.wk::before { content: attr(data-label); position: absolute; left: 0; bottom: 100%; padding-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--text-2); transition: color 200ms ease; }
.wk a { display: block; color: inherit; text-decoration: none; }
.wk-stage { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 200ms ease; }
.wk.is-lead .wk-stage { aspect-ratio: 16 / 8; }
.wk-stage img { position: absolute; inset: 7% 8% 0; width: 84%; height: 93%; object-fit: cover; object-position: top center; border-radius: 10px 10px 0 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity 300ms ease, transform 500ms var(--ease); }
.wk-stage img.is-on { opacity: 1; transform: none; }
.wk-dots { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(19, 19, 19, 0.6); transform: translateX(-50%); }
.wk-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(239, 233, 221, 0.4); transition: width 300ms var(--ease), background-color 300ms ease; }
.wk-dots i.is-on { width: 16px; background: #efe9dd; }
.wk-info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'n t go' 'n l go' 'n k go'; column-gap: 16px; row-gap: 4px; align-items: start; padding-top: 20px; }
.wk-info b { grid-area: n; font: 500 13px/28px var(--mono); color: var(--text-2); }
.wk-info strong { grid-area: t; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.wk-info span { grid-area: l; font-size: 16px; line-height: 24px; color: var(--text-2); text-wrap: pretty; }
.wk-info em { grid-area: k; margin-top: 6px; font: 500 12px/16px var(--mono); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.wk-go { grid-area: go; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel); color: var(--text); font-style: normal; transition: background-color 200ms ease, color 200ms ease, transform 500ms var(--ease); }
@media (hover: hover) {
  .wk:hover::before { color: var(--sel); }
  .wk:hover .wk-stage { box-shadow: 0 0 0 1.5px var(--sel); }
  .wk:hover .wk-go { background: var(--text); color: var(--bg); transform: rotate(45deg); }
}
.wk a:focus-visible { outline: none; }
.wk a:focus-visible .wk-stage { box-shadow: 0 0 0 3px var(--sel); }
.work-more-k { margin-top: clamp(72px, 9vw, 120px); }
.work-small { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.work-small a { display: grid; gap: 4px; padding: 12px 12px 16px; border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; transition: background-color 200ms ease, transform 160ms var(--ease); }
.work-small img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; margin-bottom: 12px; border-radius: 8px; background: var(--c); }
.work-small b { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.work-small span { font-size: 14px; line-height: 20px; color: var(--text-2); }
@media (hover: hover) { .work-small a:hover { background: var(--panel-2); } }
@media (max-width: 900px) {
  .work-big { grid-template-columns: 1fr; }
  .wk.is-lead .wk-stage { aspect-ratio: 16 / 10; }
  .work-small { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .work-small { grid-template-columns: 1fr; } .wk-info { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'n t' 'n l' 'n k'; } .wk-go { display: none; } }

/* ---------- hold to copy the email ---------- */
.hold { position: relative; display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--panel); color: var(--text); font: 600 16px/24px var(--font); cursor: pointer; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 160ms var(--ease); }
.hold:active { transform: scale(0.97); }
.hold:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; }
.hold-fill { position: absolute; inset: 0; background: var(--text); clip-path: inset(0 100% 0 0); transition: clip-path 200ms ease-out; }
.hold.is-holding .hold-fill { clip-path: inset(0 0 0 0); transition: clip-path 900ms linear; }
.hold-t { position: relative; transition: color 200ms ease; }
.hold.is-holding .hold-t, .hold.is-done .hold-t { color: var(--bg); }
.hold.is-done .hold-fill { clip-path: inset(0 0 0 0); }
.hold-hint { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .wk-stage img, .wk-dots i, .hold-fill { transition: none; } }
.wk-stage img.is-tall { object-fit: contain; object-position: center bottom; border-radius: 0; box-shadow: none; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.4)); }

/* ---------- Terra Pass live demo inside its work card ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wk a.wk-info { display: grid; color: inherit; text-decoration: none; border-radius: 8px; }
.wk a.wk-info:focus-visible { outline: 3px solid var(--sel); outline-offset: 4px; }
@media (hover: hover) { .wk.is-demo .wk-info:hover .wk-go { background: var(--text); color: var(--bg); transform: rotate(45deg); } .wk.is-demo:hover .wk-go { background: var(--panel); color: var(--text); transform: none; } .wk.is-demo .wk-info:hover ~ * {} }
.wk.is-demo .wk-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; aspect-ratio: auto; padding: clamp(32px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.demo-k { margin: 0 0 16px; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #ffebd5; }
.demo-t { margin: 0; max-width: 420px; color: #fff; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.demo-s { margin: 16px 0 0; max-width: 380px; color: rgba(255, 255, 255, 0.82); font-size: 16px; line-height: 24px; text-wrap: pretty; }
.phone { position: relative; width: 300px; height: 620px; padding: 12px; border-radius: 48px; background: #0d0d0d; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); color: #000; font-family: var(--font); }
.ph-view { position: absolute; inset: 12px; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 20px; border-radius: 36px; background: #fafafa; overflow: hidden; transition: opacity 300ms ease, transform 420ms cubic-bezier(0.23, 1, 0.32, 1); }
.ph-view.is-enter { opacity: 0; transform: translateX(24px); }
.ph-view.is-leave { opacity: 0; transform: translateX(-24px); }
.ph-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 4px; font-size: 12px; font-weight: 600; }
.ph-bar i { width: 20px; height: 9px; border-radius: 3px; background: #000; }
.ph-h { margin: 4px 0 0; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; }
.ph-pass { display: grid; gap: 4px; padding: 16px; border-radius: 22px; background: #181818; color: #fff; box-shadow: 0 16px 30px -14px rgba(13, 29, 29, 0.5); }
.ph-pass-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.ph-pass-top b { font-size: 17px; font-weight: 400; letter-spacing: 0.04em; }
.ph-pass em { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font: 600 11px/14px var(--font); font-style: normal; }
.ph-pass.is-active em { background: #d6a266; color: #000; }
.ph-pass strong { font-size: 16px; line-height: 20px; }
.ph-pass > span:last-child { font-size: 12px; line-height: 16px; color: #ffebd5; }
.ph-sub { margin: 2px 0 -4px; font-size: 14px; font-weight: 700; }
.ph-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph-opts button { display: grid; gap: 2px; justify-items: start; min-height: 60px; padding: 10px; border: 0; border-radius: 14px; background: #fff; color: #000; font: 600 12px/16px var(--font); text-align: left; cursor: pointer; box-shadow: 0 2px 6px rgba(13, 29, 29, 0.05), 0 8px 20px -8px rgba(13, 29, 29, 0.12); transition: box-shadow 200ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.ph-opts button b { font-size: 17px; line-height: 22px; }
.ph-opts button[aria-checked='true'] { box-shadow: inset 0 0 0 2px #d6a266; background: #fff8f0; }
.ph-opts button:active, .ph-cta:active { transform: scale(0.97); }
.ph-opts button:focus-visible, .ph-cta:focus-visible { outline: 2px solid #4b6f97; outline-offset: 2px; }
.ph-inc { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 16px; color: #454545; }
.ph-inc li { display: flex; gap: 8px; align-items: center; }
.ph-inc li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 2px; background: #d6a266; }
.ph-cta { margin-top: auto; height: 46px; border: 0; border-radius: 16px; background: #606060; color: #fff; font: 600 15px/20px var(--font); cursor: pointer; transition: background-color 200ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.ph-cta[disabled] { background: #454545; cursor: progress; }
.ph-cta.is-quiet { background: #fff; color: #000; box-shadow: 0 2px 6px rgba(13, 29, 29, 0.05), 0 8px 20px -8px rgba(13, 29, 29, 0.12); }
@media (hover: hover) { .ph-cta:not(.is-quiet):hover { background: #454545; } }
.ph-code { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 22px; background: #fff; color: #000; box-shadow: 0 2px 6px rgba(13, 29, 29, 0.05), 0 8px 20px -8px rgba(13, 29, 29, 0.12); }
.ph-code p { margin: 0; font-size: 12px; line-height: 16px; color: #454545; }
.ph-left { margin: 0; text-align: center; font-size: 13px; color: #454545; }
.ph-left b { color: #000; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .wk.is-demo .wk-stage { grid-template-columns: 1fr; justify-items: center; gap: 32px; padding: 32px 16px; }
  .demo-side { justify-self: stretch; }
}
@media (max-width: 360px) { .phone { transform: scale(0.9); transform-origin: top center; margin-bottom: -60px; } }
@media (prefers-reduced-motion: reduce) { .ph-view { transition: none; } }
.ph-view[hidden] { display: none; }

/* the start-up lands on the hero: the letters fly to their place, the cover clears, the page comes in */
@keyframes land-in { from { opacity: 0; } }
.is-landing .file .panel { animation: land-in 600ms ease both 750ms; }
.is-landing .who { animation: land-in 700ms ease both 900ms; }
.is-landing .scrollcue, .is-landing .pill, .is-landing .ruler, .is-landing .ruler-corner { animation: land-in 600ms ease both 1050ms; }
.is-landing .sel { animation: land-in 500ms ease both 1100ms; }

/* Home and Work are two places in this file: they are buttons here, links on the other pages */
.pages button.layer-row { color: var(--text); font: inherit; font-size: 13px; }
.pages button.layer-row.is-on { font-weight: 600; background: rgba(239, 233, 221, 0.06); }
.pill-pages button { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* a lighter page for laptops with built-in graphics: no blur behind the panels, a solid colour does the same job */
html.is-lite .panel, html.is-lite .pill, html.is-lite .inspect, html.is-lite .look-tag, html.is-lite .pc-step, html.is-lite .pc-chapter, html.is-lite .pc-try { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: #232323 !important; }

/* the footer: what I am doing now, the way around, and the big letters as a layer you can colour */
.foot.is-small { padding-top: clamp(40px, 6vw, 80px); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr 1.4fr; gap: 32px 40px; margin-top: clamp(56px, 8vw, 112px); padding-top: 28px; border-top: 1px solid var(--line); }
.foot.is-small .foot-grid { margin-top: 0; }
.foot-h { margin: 0 0 14px; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.foot-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot-grid a, .foot-grid button { position: relative; display: inline-flex; align-items: baseline; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 24px; text-decoration: none; cursor: pointer; }
.foot-grid a i { font: 500 12px/24px var(--mono); font-style: normal; color: var(--text-2); }
.foot-grid a::after, .foot-grid button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .foot-grid a:hover::after, .foot-grid button:hover::after { transform: scaleX(1); transform-origin: 0 50%; } }
.foot-grid a:focus-visible, .foot-grid button:focus-visible, .foot-fill button:focus-visible { outline: 2px solid var(--sel); outline-offset: 4px; border-radius: 4px; }
.foot-status { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--text); }
.foot-status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(168, 191, 214, 0.18); }
@media (prefers-reduced-motion: no-preference) { .foot-status i { animation: foot-live 2400ms ease-in-out infinite; } }
@keyframes foot-live { 50% { box-shadow: 0 0 0 8px rgba(168, 191, 214, 0); } }
.foot-time { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.foot-time b { margin-left: 6px; font: 500 14px/20px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.foot-note { max-width: 44ch; margin: 0; font-size: 14px; line-height: 22px; color: var(--text-2); text-wrap: pretty; }
.foot-mark { position: relative; container-type: inline-size; margin-top: clamp(48px, 7vw, 96px); padding: 0; box-shadow: inset 0 0 0 1px rgba(143, 179, 218, 0.55); }
.foot-mark .h { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--sel); }
.foot-tag { position: absolute; left: 0; bottom: 100%; margin: 0 0 6px; font: 500 12px/16px var(--mono); color: var(--sel); }
.foot-size { position: absolute; left: 50%; top: 100%; margin-top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--sel); color: #181818; font: 600 11px/16px var(--mono); transform: translateX(-50%); white-space: nowrap; }
.foot-fill { position: absolute; right: 0; bottom: 100%; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font: 500 12px/16px var(--mono); color: var(--text-2); }
.foot-fill button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: var(--c); box-shadow: 0 0 0 1px rgba(239, 233, 221, 0.25); cursor: pointer; transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.foot-fill button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--c); }
@media (hover: hover) { .foot-fill button:hover { transform: scale(1.15); } }
.foot-fill code { min-width: 7ch; font: inherit; color: var(--text); }
.foot-word { position: relative; margin: 0; font-size: 30.5vw; font-size: 35.2cqw; text-align: center; line-height: 0.8; font-weight: 700; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(239, 233, 221, 0.26); user-select: none; white-space: nowrap; overflow: hidden; }
.foot-word span { display: block; padding: 0.045em 0 0.02em; }
/* the same letters, filled: the colour rises from the bottom as you scroll to the end */
.foot-ink { position: absolute; inset: 0; color: var(--fill, #efe9dd); -webkit-text-stroke: 0; clip-path: inset(calc((1 - var(--fp, 0)) * 100%) 0 0 0); transition: color 400ms ease; }
.foot-end { margin-top: 44px; }
.foot-end a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1023px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } .foot-fill span, .foot-fill code { display: none; } }

/* the same fill control as in the footer, on the big letters at the top: one colour for both */
.hero-fill { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 18px; height: 24px; opacity: 0; transition: opacity 400ms ease; }
.hero-fill.is-set { opacity: 1; }
.hero-fill .foot-tag, .hero-fill .foot-fill { position: static; margin: 0; }
.sticky:not([data-mode='hero']) .hero-fill { opacity: 0; pointer-events: none; }
.is-booting .hero-fill { opacity: 0; }
.is-landing .hero-fill { animation: land-in 500ms ease both 1100ms; }
@media (max-width: 767px), (max-aspect-ratio: 21/20) { .hero-fill { display: none; } }

/* the dot grid lights up around the mouse */
.spot { position: absolute; left: 0; top: 0; z-index: 0; width: 460px; height: 460px; pointer-events: none; opacity: 0; transition: opacity 500ms ease; background-image: radial-gradient(circle, rgba(143, 179, 218, 0.95) 1.7px, transparent 2.1px); -webkit-mask-image: radial-gradient(circle closest-side, #000 8%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 8%, transparent 100%); will-change: transform; contain: strict; }
.spot.is-on { opacity: 1; }
body.ab > .spot { position: fixed; }

/* the introduction on the home canvas: the tagline as a text layer of the file, with the portrait and the project frames between the words.
   Every fade here is a plain transition switched by a class, so scrolling does not restyle anything per frame. */
.say.is-beat { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad) 0 var(--say-l, var(--pad)); visibility: hidden; pointer-events: none; background: none; }
.say.is-beat.is-on { visibility: visible; pointer-events: auto; }
.say.is-beat::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 420ms ease; background-color: var(--bg); background-image: radial-gradient(circle, rgba(239, 233, 221, 0.1) 1px, transparent 1.3px); background-size: 24px 24px; }
.say.is-beat.is-covered::before { opacity: 1; }
.say.is-beat > .say-t, .say.is-beat > .say-s { position: relative; }
.say.is-beat .say-t { width: fit-content; max-width: min(100%, 1040px); font-size: clamp(34px, min(calc((100vw - var(--say-l, 40px) - 84px) / 11.4), 11.6svh), 92px); line-height: 1.04; }
.say.is-beat .say-l { display: inline; }
.say.is-beat .say-s { opacity: 0; transition: opacity 600ms ease 360ms; }
.say.is-beat.is-in .say-s { opacity: 1; }
.say.is-beat:not(.is-in) .say-s { transition: opacity 300ms ease; }
.say-size, .say-cur { display: none !important; }
/* the three sentences appear by themselves, one a little after the other, and stay: nothing here follows the scroll */
.say.is-beat .say-l > span { opacity: 0; color: var(--text); transition: opacity 300ms ease; }
.say.is-beat.is-in .say-l > span { opacity: 1; transition: opacity 700ms ease; }
.say.is-beat.is-in .say-l:nth-child(2) > span { transition-delay: 140ms; }
.say.is-beat.is-in .say-l:nth-child(3) > span { transition-delay: 280ms; }
.say.is-beat .say-s { margin-top: clamp(56px, 8svh, 88px); }
.say-size { position: absolute; left: 50%; bottom: -50px; transform: translateX(-50%); padding: 2px 7px; border-radius: 4px; background: var(--sky-deep); color: #fff; font: 600 11px/18px var(--mono); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the four big letters of the hero fly into the text and land on a letter of it; that letter keeps the sky colour */
.say-hit { display: inline-block; line-height: 1; font-style: normal; color: inherit; transition: color 360ms ease; }
.say.is-named .say-hit { color: var(--sel); }
.say-fly { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.say.is-drop .say-fly { opacity: 1; }
.say-probe, .say-f { margin: 0; font: 700 200px/1 var(--font); letter-spacing: -0.05em; }
.say-probe { position: absolute; left: 0; top: 0; display: flex; visibility: hidden; white-space: nowrap; }
.say-f { position: absolute; left: 0; top: 0; color: var(--hero-ink, var(--cream)); transform-origin: 0 0; will-change: transform; }
/* each flying letter is a flap with two sides: the capital of the hero in front, the letter of the text on the back */
.say-f { perspective: 1200px; }
.say-fi { position: relative; display: block; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.say-ff, .say-fb { display: block; font: inherit; letter-spacing: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.say-fb { position: absolute; left: 0; top: 0; transform: rotateX(180deg); color: var(--sel); }
/* a small frame between the words: 3 by 2 like the frames of the file. It is drawn 4 times larger and scaled down, so it stays sharp when it flies and grows. */
.say.is-beat .say-l > .say-chip { position: relative; z-index: 3; display: inline-block; width: 0.93em; height: 0.62em; margin: 0 0.05em; vertical-align: 0.03em; }
.say.is-beat.is-pics .say-l > .say-chip { opacity: 1; }
.say.is-beat.is-fly .say-l > .say-chip { opacity: 1; transition: none; }
.say.is-beat:not(.is-covered) .say-l > .say-chip { opacity: 0; transition: opacity 300ms ease; }
.say-chip > i { position: absolute; left: 0; top: 0; width: 400%; height: 400%; display: block; overflow: hidden; background: var(--fill); transform-origin: 0 0; transform: scale(0.25); will-change: transform; }
.say-chip img { position: absolute; left: 12%; top: 14%; width: 76%; height: 72%; object-fit: contain; }
.say-cur { display: block !important; z-index: 4; opacity: 0; transition: transform 320ms var(--ease), opacity 240ms ease; }
.say.is-beat.is-in .say-cur.is-on { opacity: 1; }
/* what belongs to the frames steps back while the introduction is on the canvas */
.sticky.is-beat :is([data-cw], .chip, .sel, .scrollcue, .hero-fill, .endnote, .hint) { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 900px) { .sticky.is-beat .modes { opacity: 0 !important; pointer-events: none !important; } }
@media (max-width: 720px) { .say.is-beat .say-t::before { inset: -10px; } .say-size { bottom: -38px; } }

/* the title on the colour between two pages: the words slide up from behind an edge */
.tr { align-content: center; justify-items: center; }
.tr .tr-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0 0.16em; margin: -0.08em 0 -0.16em; white-space: nowrap; }
.tr .tr-w > span { display: inline-block; font: inherit; letter-spacing: inherit; }
.tr.is-out .tr-w > span { animation: tr-up 480ms var(--ease) both; animation-delay: calc(110ms + var(--i) * 50ms); }
@keyframes tr-up { from { transform: translate3d(0, 115%, 0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tr .tr-w > span { animation: none !important; } }
@media (max-width: 900px) { .sticky.is-beat .modes { opacity: 0 !important; pointer-events: none !important; } }

/* the start-up: four letters rise from behind their own baseline, one after the other, as the file loads.
   Then they glide to the big letters of the hero and the page is there. Nothing else is on screen. */
.boot { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background-color: var(--bg); background-image: radial-gradient(circle, rgba(239, 233, 221, 0.1) 1px, transparent 1.3px); background-size: 24px 24px; transition: opacity 600ms ease 200ms, visibility 0s linear 800ms; }
.boot.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-frame { position: relative; display: grid; justify-items: center; gap: clamp(20px, 3vw, 32px); }
.boot-word { display: flex; margin: 0; font-size: clamp(64px, 17vw, 136px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; color: var(--cream); transform-origin: 50% 50%; will-change: transform; }
.boot-word > span { display: block; overflow: hidden; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.boot-word b { display: block; font-weight: inherit; transform: translate3d(0, 112%, 0); transition: transform 900ms cubic-bezier(0.19, 1, 0.22, 1); }
.boot[data-step='1'] .boot-word > span:nth-child(-n+1) b, .boot[data-step='2'] .boot-word > span:nth-child(-n+2) b, .boot[data-step='3'] .boot-word > span:nth-child(-n+3) b, .boot[data-step='4'] .boot-word b, .boot.is-landing .boot-word b { transform: none; }
.boot-size { font: 500 12px/16px var(--mono); letter-spacing: 0.02em; color: var(--text-2); font-variant-numeric: tabular-nums; transition: opacity 300ms ease; }
.boot.is-out .boot-size, .boot.is-landing .boot-size { opacity: 0; }
/* landing on the hero: the letters glide to their place, the cover clears under them, and they hand over to the real letters */
.boot.is-landing { pointer-events: none; background-image: none; background-color: rgba(24, 24, 24, 0); transition: background-color 900ms cubic-bezier(0.4, 0, 0.2, 1) 200ms; }
.boot.is-landing .boot-word > span { overflow: visible; }
.boot.is-landing .boot-word { opacity: 0; transition: transform 1150ms cubic-bezier(0.7, 0, 0.15, 1), opacity 320ms ease 1040ms; }
@media (prefers-reduced-motion: reduce) { .boot-word b { transition: none; transform: none; } }

/* the list of projects under the canvas is only shown when the 3D canvas cannot run; with the canvas, the frames are the list */
html:not(.no-gl) .work { display: none; }
html:not(.no-gl) .skip[href='#projects'], .no-gl .skip[href='#frames'] { display: none; }

/* page change: the colour is one layer that only moves and scales; the title sits above it */
.tr { pointer-events: none; }
.tr-bg { position: absolute; inset: 0; z-index: -1; display: block; will-change: transform, opacity; }
.tr { isolation: isolate; }
/* a jump to a far frame: the canvas dips to dark for a moment and comes back at the new place, without scrolling through everything between */
.sticky::after { content: ''; position: absolute; inset: 0; z-index: 50; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.sticky.is-jump::after { opacity: 1; transition-duration: 140ms; }
/* the frame counter (add ?fps to the address) */
.fps { position: fixed; z-index: 300; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: #000; color: #efe9dd; font: 600 12px/16px var(--mono); pointer-events: none; white-space: pre; }
