

/* Six proposals for the Work page and the way into a project, with View Transitions, on Tau's own tokens. */
:root, :root[data-theme] {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --page: #fcfcfb; --ground: #f1f0ed; --raised: #ffffff; --ink: #0b0b0b; --ink2: #52514e; --ink3: #6c6b69; --faded: #97958d;
  --line: rgb(11 11 11 / 10%); --line-strong: rgb(11 11 11 / 20%);
  --glass: rgb(255 255 255 / 78%); --accent: #6250d6;
  --e1: 0 3px 6px -2px rgb(0 0 0 / .02), 0 1px 1px rgb(0 0 0 / .04);
  --e2: 0 0 0 .5px rgb(0 0 0 / .06), 0 6px 18px rgb(0 0 0 / .05), 0 3px 9px rgb(0 0 0 / .06), 0 1px 1px rgb(0 0 0 / .04);
  --e3: 0 0 0 .5px rgb(0 0 0 / .06), 0 24px 64px rgb(0 0 0 / .16), 0 8px 24px rgb(0 0 0 / .10), 0 1px 1px rgb(0 0 0 / .04);
  --m: clamp(16px, 2.8vw, 40px);
  --statement: clamp(38px, 6.4vw, 96px);
  --tau-ease: linear(0, 0.0234 0.39%, 0.0740 1.28%, 0.1420 2.54%, 0.2210 4.15%, 0.3058 6.06%, 0.3921 8.27%, 0.4764 10.75%, 0.5561 13.48%, 0.6294 16.47%, 0.6951 19.70%, 0.7528 23.17%, 0.8025 26.86%, 0.8443 30.78%, 0.8791 34.91%, 0.9074 39.26%, 0.9301 43.81%, 0.9481 48.56%, 0.9621 53.52%, 0.9728 58.67%, 0.9810 64.02%, 0.9870 69.55%, 0.9915 75.28%, 0.9948 81.19%, 0.9972 87.28%, 0.9988 93.55%, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark; --page: #0d0d0d; --ground: #161615; --raised: #1f1f1e; --ink: #f0efec; --ink2: #c3c2b7; --ink3: #8f8e89; --faded: #5f5e5a;
  --line: rgb(255 255 255 / 10%); --line-strong: rgb(255 255 255 / 20%); --glass: rgb(40 40 40 / 75%);
  --e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
  --e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 24px 64px rgb(0 0 0 / .6), 0 8px 24px rgb(0 0 0 / .4); } }
:root[data-theme="dark"] {
  color-scheme: dark; --page: #0d0d0d; --ground: #161615; --raised: #1f1f1e; --ink: #f0efec; --ink2: #c3c2b7; --ink3: #8f8e89; --faded: #5f5e5a;
  --line: rgb(255 255 255 / 10%); --line-strong: rgb(255 255 255 / 20%); --glass: rgb(40 40 40 / 75%);
  --e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
  --e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 24px 64px rgb(0 0 0 / .6), 0 8px 24px rgb(0 0 0 / .4); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font: 400 15px/24px var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv01", "cv11"; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.small { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }
.kick { font: 500 11px/16px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px var(--line), var(--e2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 9999px; background: var(--ink); color: var(--page); font: 500 14px/1 var(--font); cursor: pointer; white-space: nowrap; }
.btn.is-quiet { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
img { -webkit-user-drag: none; }
body { overflow-x: clip; }

/* the bar, as on the site; it and the switcher stay put while the page changes under them */
.bar { position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 4px 0 14px;
  border-radius: 9999px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px var(--line), var(--e2); font-size: 13px; white-space: nowrap; view-transition-name: bar; }
.bar b { font-weight: 550; font-size: 14px; margin-right: 12px; }
.bar span { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9999px; color: var(--ink2); }
.bar span.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bar i { font-style: normal; margin-left: 8px; height: 36px; padding: 0 16px; display: flex; align-items: center; border-radius: 9999px; background: var(--ink); color: var(--page); }
@media (max-width: 720px) { .bar span:not(.on) { display: none; } }

/* the view transition: the picture travels as the ease; the rest of the page steps out and rises in */
::view-transition-group(*) { animation-duration: 640ms; animation-timing-function: var(--tau-ease); }
::view-transition-old(root) { animation: 220ms linear both vt-out; }
::view-transition-new(root) { animation: 520ms var(--tau-ease) 80ms both vt-in; }
::view-transition-image-pair(hero) { isolation: auto; }
::view-transition-old(hero), ::view-transition-new(hero) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; object-position: top; }
::view-transition-group(bar), ::view-transition-group(pick) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* a picture on its ground, as on the site */
.plate { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--ground); }
.plate img { display: block; width: 78%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 3px; box-shadow: 0 0 0 .5px var(--line), var(--e2); background: var(--raised); }
.plate.is-wide { aspect-ratio: 16 / 10; }
.plate.is-tall { aspect-ratio: 4 / 5; }
.plate.is-tall img { width: 86%; }
.plate.is-square { aspect-ratio: 1; }
.plate.is-square img { width: 82%; }
.kinds { color: var(--ink3); }

/* the page head */
.wk { padding: 148px var(--m) 0; }
.wk-h { display: flex; align-items: flex-start; margin: 0; font: 450 clamp(60px, 10vw, 156px)/.9 var(--font); letter-spacing: -0.048em; }
.wk-h sup { position: relative; top: .3em; margin-left: .1em; font-size: .2em; font-weight: 450; letter-spacing: -0.01em; color: var(--ink3); }
.wk-lede { max-width: 33em; margin: 32px 0 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.48; letter-spacing: -0.014em; color: var(--ink2); }
.bud { padding: clamp(56px, 7vw, 96px) 0 200px; }
.wk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 120px; padding: 28px 0 120px; border-top: .5px solid var(--line); font-size: 13px; color: var(--ink3); }

/* the switcher, a rail on the right edge */
.pick { position: fixed; z-index: 90; right: 10px; top: 50%; transform: translateY(-50%); -webkit-user-select: none; user-select: none; view-transition-name: pick; }
.pick-rail { display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 9999px; }
.pick-rail button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; font: 500 12px/1 var(--font); color: var(--ink3); cursor: pointer; }
.pick-rail button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.pick-note { position: absolute; right: calc(100% + 10px); top: 50%; width: min(300px, calc(100vw - 72px)); margin: 0; padding: 12px 14px; border-radius: 12px; transform: translateY(-50%); font-size: 13px; line-height: 19px; color: var(--ink2);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--tau-ease); background: color-mix(in srgb, var(--page) 94%, transparent); }
.pick-note b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.pick.is-note .pick-note { opacity: 1; }
@media (max-width: 720px) {
  .pick { top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: none; right: 6px; }
  .pick-rail button { width: 26px; height: 26px; font-size: 11px; }
  .pick-note { top: auto; bottom: 0; transform: none; }
}

/* ---------------------------------------------------------------- the project page, shared by all six */
.pj { padding: 116px var(--m) 0; }
.pj-crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 28px; font-size: 14px; color: var(--ink3); }
.pj-crumb a { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.pj-crumb a:is(:hover, [data-hover]) { color: var(--ink); }
.pj-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 56px; align-items: end; margin-bottom: 40px; }
.pj-h { margin: 0; font: 450 clamp(48px, 7.4vw, 118px)/.94 var(--font); letter-spacing: -0.045em; }
.pj-line { margin: 22px 0 0; max-width: 32em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink2); }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: .5px solid var(--line-strong); font-size: 14px; line-height: 20px; }
.facts li span:first-child { color: var(--ink3); }
.facts li span:last-child { text-align: right; }
.pj-hero { aspect-ratio: 16 / 8.2; border-radius: 16px; }
.pj-hero img { width: 74%; border-radius: 5px; box-shadow: 0 0 0 .5px var(--line), var(--e3); }
.pj-cap { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--ink3); }
.pj-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; margin-top: clamp(72px, 8vw, 120px); }
.pj-body h2 { margin: 0; font: 450 clamp(26px, 2.6vw, 38px)/1.08 var(--font); letter-spacing: -0.026em; }
.pj-body p { margin: 0 0 18px; max-width: 36em; font-size: 17px; line-height: 27px; color: var(--ink2); }
.pj-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 40px 24px; margin-top: clamp(72px, 8vw, 120px); }
.pj-figs figure { margin: 0; }
.pj-figs figcaption { margin-top: 12px; max-width: 34em; font-size: 13px; line-height: 20px; color: var(--ink3); }
.pj-next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: center; margin-top: clamp(96px, 10vw, 160px); padding-top: 28px; border-top: .5px solid var(--line-strong); cursor: pointer; }
.pj-next b { display: block; margin-top: 10px; font: 450 clamp(36px, 5vw, 80px)/.98 var(--font); letter-spacing: -0.04em; }
.pj-next span { display: block; margin-top: 12px; font-size: 15px; color: var(--ink3); }
.pj-next:is(:hover, [data-hover]) .plate img { transform: translateY(-4px); }
.pj-next .plate img { transition: transform .5s var(--tau-ease); }
.pj-back { margin-top: 24px; }
@media (max-width: 720px) {
  .pj { padding-top: 92px; }
  .pj-top, .pj-body, .pj-next { grid-template-columns: 1fr; }
  .pj-hero { aspect-ratio: 4 / 3; }
  .pj-hero img { width: 86%; }
}

/* ---------------------------------------------------------------- 1 the grid */
.gr-filter { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 32px; }
.gr-filter button { padding: 4px 0; border: 0; background: none; color: var(--ink3); font: 450 clamp(20px, 2vw, 28px)/1.2 var(--font); letter-spacing: -0.02em; cursor: pointer; }
.gr-filter button sup { margin-left: 2px; font-size: 11px; letter-spacing: 0; }
.gr-filter button[aria-pressed="true"], .gr-filter button:is(:hover, [data-hover]) { color: var(--ink); }
.gr { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; margin-right: 34px; align-items: start; }
.gr-t { grid-column: span 4; display: block; cursor: pointer; }
.gr-t.is-wide { grid-column: span 6; }
.gr-t.is-tall { grid-column: span 3; }
.gr-t.is-square { grid-column: span 3; }
.gr-t h3, .ix-n, .nm-w b { font-weight: 500; }
.gr-t h3 { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 2px; font-size: 17px; line-height: 24px; letter-spacing: -0.014em; }
.gr-t h3 span { font-size: 13px; font-weight: 400; color: var(--ink3); }
.gr-t p { margin: 0; max-width: 30em; font-size: 14px; line-height: 21px; color: var(--ink3); }
.gr-t .plate img { transition: transform .5s var(--tau-ease); }
.gr-t:is(:hover, [data-hover]) .plate img { transform: translateY(-4px); }
@media (max-width: 900px) { .gr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; margin-right: 0; } .gr-t, .gr-t.is-wide, .gr-t.is-tall, .gr-t.is-square { grid-column: span 1; } .gr-t.is-wide { grid-column: span 2; } }

/* ---------------------------------------------------------------- 2 the index */
.ix { margin: 0 34px 0 0; padding: 0; list-style: none; border-bottom: .5px solid var(--line-strong); }
.ix-r { display: grid; grid-template-columns: 52px minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) 72px; align-items: center; gap: 16px; padding: 14px 0; border-top: .5px solid var(--line-strong); cursor: pointer; transition: opacity .3s var(--tau-ease); }
.ix:is(:hover, [data-hover]) .ix-r:not(:is(:hover, [data-hover])) { opacity: .4; }
.ix-r .mono { font-size: 12px; color: var(--ink3); }
.ix-n { font: 450 clamp(24px, 3vw, 44px)/1.08 var(--font); letter-spacing: -0.03em; }
.ix-r > span:nth-child(3), .ix-r > span:nth-child(4) { font-size: 14px; color: var(--ink3); }
.ix-th { width: 72px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 .5px var(--line); }
.ix-th img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ix-peek { position: fixed; z-index: 40; left: 0; top: 0; width: 380px; pointer-events: none; opacity: 0; transition: opacity .2s linear; }
.ix-peek.is-on { opacity: 1; }
.ix-peek img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 5px; box-shadow: 0 0 0 .5px var(--line), var(--e3); background: var(--raised); }
@media (max-width: 720px) { .ix { margin-right: 0; } .ix-r { grid-template-columns: 30px minmax(0, 1fr) 64px; } .ix-r > span:nth-child(3), .ix-r > span:nth-child(4) { display: none; } .ix-th { width: 64px; } }

/* ---------------------------------------------------------------- 3 the strip */
.st { position: relative; margin: 0 calc(-1 * var(--m)); overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.st.is-held { cursor: grabbing; }
.st-row { display: flex; gap: 28px; padding: 0 var(--m); will-change: transform; }
.st-t { flex: none; width: min(56vw, 760px); }
.st-t .plate { aspect-ratio: 16 / 10.5; }
.st-t h3 { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 4px; font: 450 clamp(24px, 2.4vw, 36px)/1.1 var(--font); letter-spacing: -0.026em; }
.st-t h3 .mono { font-size: 12px; color: var(--ink3); letter-spacing: 0; }
.st-t p { margin: 0; max-width: 34em; font-size: 14px; line-height: 21px; color: var(--ink3); }
.st-bar { display: flex; align-items: center; gap: 16px; margin: 28px 34px 0 0; }
.st-track { position: relative; flex: 1; height: 2px; border-radius: 1px; background: var(--line); }
.st-thumb { position: absolute; left: 0; top: 0; height: 2px; border-radius: 1px; background: var(--ink); }
@media (max-width: 720px) { .st-t { width: 82vw; } .st-row { gap: 14px; } .st-bar { margin-right: 0; } }

/* ---------------------------------------------------------------- 4 by project */
.ch { margin-right: 34px; }
.ch-s { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; padding: 36px 0 72px; border-top: .5px solid var(--line-strong); }
.ch-s h2 { margin: 0; font: 450 clamp(34px, 4vw, 64px)/1 var(--font); letter-spacing: -0.04em; }
.ch-s h2 sup { margin-left: .1em; font-size: .3em; color: var(--ink3); letter-spacing: 0; vertical-align: top; }
.ch-head p { margin: 16px 0 0; max-width: 28em; font-size: 15px; line-height: 23px; color: var(--ink2); }
.ch-head { position: sticky; top: 96px; align-self: start; }
.ch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
.ch-list .gr-t { grid-column: auto; }
.ch-list .gr-t:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (max-width: 720px) { .ch { margin-right: 0; } .ch-s { grid-template-columns: 1fr; } .ch-head { position: static; } .ch-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 5 the names */
.nm { margin: 0 34px 0 0; font: 450 clamp(36px, 6.2vw, 104px)/1.12 var(--font); letter-spacing: -0.045em; }
.nm-w { display: inline; cursor: pointer; color: var(--ink); transition: color .3s var(--tau-ease); }
.nm:is(:hover, [data-hover]) .nm-w:not(:is(:hover, [data-hover])) { color: var(--faded); }
/* the picture grows over the line, never in it, so the words around it stay where they are */
.nm-w .nm-pic { position: relative; display: inline-block; width: 1.16em; height: .725em; margin: 0 .14em; vertical-align: 0; overflow: hidden; border-radius: .06em; box-shadow: 0 0 0 .5px var(--line); transition: transform .55s var(--tau-ease), box-shadow .55s var(--tau-ease); }
.nm-w:is(:hover, [data-hover]) .nm-pic, .nm-w:focus-visible .nm-pic { z-index: 2; transform: scale(2.6); box-shadow: 0 0 0 .5px var(--line), var(--e3); }
.nm-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nm-w sup { margin-left: .06em; font-size: .2em; letter-spacing: 0; color: var(--ink3); vertical-align: top; position: relative; top: .5em; }
.nm-sep { color: var(--faded); }
.nm-k { white-space: nowrap; }
.nm-cap { min-height: 44px; margin: 32px 0 0; font-size: 15px; line-height: 22px; color: var(--ink3); }
@media (max-width: 720px) { .nm { margin-right: 0; } }

/* ---------------------------------------------------------------- 6 the light table */
.lt { position: relative; height: max(760px, 92svh); margin: 0 34px 0 0; overflow: hidden; border-radius: 16px; background: var(--ground); touch-action: none; -webkit-user-select: none; user-select: none; }
.lt-c { position: absolute; left: 0; top: 0; width: 300px; padding: 0; border: 0; background: none; cursor: grab; will-change: transform; }
.lt-c.is-held { cursor: grabbing; }
.lt-c img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 3px; background: var(--raised); box-shadow: 0 0 0 .5px var(--line), var(--e2); pointer-events: none; }
.lt-c.is-held img { box-shadow: 0 0 0 .5px var(--line), var(--e3); }
.lt-c span { position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; font-size: 13px; color: var(--ink2); }
.lt-hint { position: absolute; left: 18px; bottom: 16px; margin: 0; }
.lt-tidy { position: absolute; right: 16px; bottom: 12px; }
@media (max-width: 720px) { .lt { margin-right: 0; height: 640px; } .lt-c { width: 170px; } .lt-c span { font-size: 11px; } }
