:root {
  --bg: #fbfaf6;
  --fg: #161616;
  --text: #3e3e3b;
  --muted: #75756f;
  --line: #e8e5dc;
  --thumb-bg: #f2efe7;
  --mat-bg: #f6f4ee;
  --hover: #f3efe2;
  --accent: #161616;
  --radius: 5px;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --fg: #ececea;
    --text: #c4c4c0;
    --muted: #8d8d89;
    --line: #29271f;
    --thumb-bg: #1e1c17;
    --mat-bg: #191814;
    --hover: #1c1a15;
    --accent: #ececea;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a { transition: color .2s ease; }
a:hover { color: var(--muted); }
/* One arrow icon, rotated per use. */
:root {
  --arr-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5'/%3E%3C/svg%3E");
  --arr-e: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='rotate(45 5 5)' d='M2 8 8 2M3.5 2H8v4.5'/%3E%3C/svg%3E");
  --arr-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='rotate(-135 5 5)' d='M2 8 8 2M3.5 2H8v4.5'/%3E%3C/svg%3E");
}
a.ext::after, .more span, .work a::after, .float-back::before, .lb-prev::before, .lb-next::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  background: color-mix(in srgb, currentColor 50%, transparent);
  -webkit-mask: var(--arr-e) center / contain no-repeat;
  mask: var(--arr-e) center / contain no-repeat;
  transition: translate .2s ease, background-color .2s ease;
}
a.ext:hover::after, .more:hover span, .work a:hover::after, .work a:focus-visible::after, .float-back:hover::before, .lb-prev:hover::before, .lb-next:hover::before { background: color-mix(in srgb, currentColor 80%, transparent); }
a.ext::after { content: "" / " (opens in a new tab)"; margin-left: .22em; -webkit-mask-image: var(--arr-ne); mask-image: var(--arr-ne); }
.float-back::before, .lb-prev::before { -webkit-mask-image: var(--arr-w); mask-image: var(--arr-w); }
.float-back::before { margin-right: .35em; }
a.ext:hover::after { translate: 1px -1px; }
.more:hover span, .lb-next:hover::before { translate: 1px 0; }
.float-back:hover::before, .lb-prev:hover::before { translate: -1px 0; }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}

.wave {
  width: fit-content;
  margin: 72px 0 20px;
  font-size: 34px;
  line-height: 1;
  transform-origin: 70% 75%;
}
@media (prefers-reduced-motion: no-preference) {
  .wave { animation: wave 1.8s ease-in-out 0.4s 1; }
}
@keyframes wave {
  0% { transform: rotate(0); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(16deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0); }
}

.name {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
}

.intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  max-width: 600px;
}
.intro p { margin: 0 0 1.2em; }
.intro a { color: var(--fg); text-decoration-color: color-mix(in srgb, var(--muted) 35%, var(--line)); }
.intro a:hover { color: var(--muted); }

/* sections */

section { margin-top: 96px; }

.label {
  font: 500 12px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 24px;
}

.how { list-style: none; margin: 0; padding: 0; max-width: 600px; }
.how li { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.how strong { color: var(--fg); font-weight: 600; }

/* work list */

.work { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

[id] { scroll-margin-top: 10px; }

.work li { padding: 0; border-bottom: 1px solid var(--line); }
.work li[id] { scroll-margin-top: 6px; }
.work, .work li { transition: border-color .2s ease; }
.work li:has(> a:is(:hover, :focus-visible)),
.work li:has(+ li > a:is(:hover, :focus-visible)) { border-bottom-color: transparent; }
.work:has(> li:first-child > a:is(:hover, :focus-visible)) { border-top-color: transparent; }

.work a {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  margin: 0 -18px;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.work a:hover, .work a:focus-visible { color: inherit; background: var(--hover); }
.work a { position: relative; }
.work a::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 16px;
  line-height: 1;
  color: var(--fg);
  opacity: 0;
  translate: -1px 0;
  transition: translate .2s ease, opacity .2s ease, background-color .2s ease;
}
.work a:hover::after, .work a:focus-visible::after { opacity: 1; translate: 0; }
.work a:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }

.work .thumb {
  aspect-ratio: 4 / 3;
  background: var(--thumb-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work a:hover .thumb img { transform: scale(1.03); }

.work h3 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.work h3 small { font: 13px/1.6 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 400; white-space: nowrap; }
.work p { margin: 0; color: var(--text); font-size: 15px; }

.work .locked h3 small::before { content: "Password · "; }
.work .locked h3 small:empty::before { content: "Password"; }

/* unlock */

.unlock { max-width: 420px; }
.unlock h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.unlock p { color: var(--muted); margin: 0 0 32px; }
.unlock-row { display: flex; gap: 8px; }
.unlock input[type=password] {
  flex: 1;
  min-width: 0;
  font: 15px/1 var(--sans);
  padding: 11px 12px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.unlock input[type=password]:focus { outline: none; border-color: var(--fg); }
.unlock button {
  font: 13px/1 var(--sans);
  padding: 0 18px;
  color: var(--bg);
  background: var(--fg);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.unlock .unlock-error { color: #c0392b; margin: 12px 0 0; font-size: 14px; }

/* photos */

.photos-intro { margin: 0 0 24px; font-size: 15px; color: var(--text); max-width: 520px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--thumb-bg); }
.grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.grid a img { transition: transform .4s ease; }
.grid a:hover img { transform: scale(1.03); }

.more { display: inline-block; margin-top: 16px; font: 15px/1 var(--sans); color: var(--muted); }
.more span { margin-left: .3em; }
.more:hover { color: var(--fg); }

/* full photo page */

.gallery { columns: 2 280px; column-gap: 8px; }
.gallery :is(img, video) { width: 100%; margin-bottom: 8px; border-radius: 2px; break-inside: avoid; }

.photos-page .page { max-width: 1488px; }
.gallery.justified { columns: auto; }
.gallery.justified .row { display: flex; gap: var(--gap); margin-bottom: var(--gap); }
.gallery.justified .shot { flex: 1 1 0; min-width: 0; position: relative; display: block; overflow: hidden; border-radius: 2px; cursor: zoom-in; }
.gallery.justified :is(img, video) { width: 100%; height: auto; margin: 0; border-radius: 0; background: var(--thumb-bg); scroll-margin-top: var(--gap); }
.gallery video { display: block; }
.shot .place {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  font: 500 13px/1.3 var(--sans); color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.shot:hover .place, .shot:focus-visible .place { opacity: 1; }
.shot:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #ecebe6; overflow: hidden; }
.lightbox::backdrop { background: rgba(14, 13, 11, .94); }
.lightbox[open] { animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; height: 100%; padding: 56px 88px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox figure :is(img, video) { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox figcaption { min-height: 1.4em; font: 14px/1.4 var(--sans); color: #b9b8b2; }
.lightbox button { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #ecebe6; font: 18px/1 var(--sans); cursor: pointer; transition: background-color .2s ease; }
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
html:has(.lightbox[open]) { overflow: hidden; }
@media (max-width: 600px) {
  .lightbox figure { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
/* Same as case studies: the button sits 24px left of the content column, or at the screen edge when there is no room. 77px = button width. */
@media (min-width: 900px) { .photos-page .float-back { left: max(20px, calc(50% - 744px - 77px)); right: auto; } }

/* footer */

footer {
  margin-top: 120px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font: 13px/1.6 var(--sans);
  color: var(--muted);
}
footer nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration-color: color-mix(in srgb, var(--muted) 35%, var(--line)); }
footer a:hover { color: var(--muted); }

/* previous / next case */
.case-nav { margin-top: 120px; display: flex; justify-content: space-between; gap: 24px; font: 14px/1.5 var(--sans); }
.case-nav + footer { margin-top: 32px; }
.case-nav a { display: flex; flex-direction: column; gap: 2px; max-width: calc(50% - 12px); text-decoration: none; }
.case-nav span { transition: color .2s ease; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 35%, var(--line)); }
.case-nav a:hover span { color: var(--muted); }
.case-nav small { font-size: 12px; color: var(--muted); }
.case-nav .next { margin-left: auto; text-align: right; }
.case-nav small::before, .case-nav small::after { display: inline-block; width: .7em; height: .7em; background: color-mix(in srgb, currentColor 50%, transparent); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: translate .2s ease; }
.case-nav .prev small::before { content: ""; margin-right: .35em; -webkit-mask-image: var(--arr-w); mask-image: var(--arr-w); }
.case-nav .next small::after { content: ""; margin-left: .35em; -webkit-mask-image: var(--arr-e); mask-image: var(--arr-e); }
.case-nav .prev:hover small::before { translate: -1px 0; }
.case-nav .next:hover small::after { translate: 1px 0; }
@media (prefers-reduced-motion: reduce) { .case-nav small::before, .case-nav small::after { transition: none; } }

/* case study */


.case h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.case .subtitle { font-size: 22px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); margin: 0 0 20px; }
.case .lede { font-size: 19px; line-height: 1.5; margin: 0 0 40px; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 48px;
}
.facts dt { font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 14px; line-height: 1.4; }

.case h2 { font-size: 18px; margin: 56px 0 12px; letter-spacing: -0.01em; }
.case h2.part { font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 88px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.case h3 { font-size: 18px; margin: 48px 0 12px; letter-spacing: -0.01em; }
.case h2.part + h3 { margin-top: 24px; }
.case p, .case li { font-size: 16px; line-height: 1.7; color: var(--text); }
.case ol { padding-left: 1.2em; }
.case li { margin-bottom: 8px; }

.case figure { width: min(880px, calc(100vw - 48px)); margin: 40px 0 40px 50%; transform: translateX(-50%); }
.case figure :is(img, video) { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); background: var(--mat-bg); }
.case figure { display: grid; --mat: 20px; }
.case figure::before { content: ""; grid-area: 1 / 1; background: var(--mat-bg); border-radius: 10px; }
.case figure > :not(figcaption, script) { grid-area: 1 / 1; margin: var(--mat); min-width: 0; }
.case figure > figcaption { grid-row: 2; }
.case figure > :is(img, video) { width: calc(100% - 2 * var(--mat)); }
.case figure img.flat { box-shadow: none; border-radius: 0; }
@media (max-width: 600px) { .case figure { --mat: 10px; } .case figure::before { border-radius: 8px; } }
.case figcaption { font: 12px/1.5 var(--sans); color: var(--muted); margin-top: 10px; text-align: center; text-wrap: balance; }

.case strong { color: var(--fg); }

.case .result {
  color: var(--fg);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 40px 0;
  padding-left: 20px;
  border-left: 2px solid var(--fg);
}

.case .quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 72px 0 0; }
.case .quotes-title { grid-column: 1 / -1; font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.case .quote { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 22px 24px; background: var(--mat-bg); border-radius: 10px; }
.case .quote blockquote { margin: 0; }
.case .quote blockquote p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg); }
.case .quote .by { margin: 0; font: 13px/1.4 var(--sans); color: var(--muted); }
.case .quote .by span { display: block; color: var(--fg); font-weight: 500; margin-bottom: 2px; }
@media (max-width: 600px) { .case .quotes { grid-template-columns: 1fr; } .case .quote { padding: 18px 20px; } }

.case .papers { list-style: none; padding: 0; margin: 24px 0 0; }
.case .papers li { margin-bottom: 28px; }
.papers .meta { display: block; font: 12px/1.5 var(--sans); color: var(--muted); margin: 4px 0 6px; }


@media (max-width: 600px) {
  .page { padding: 80px 16px 64px; }
  .name { font-size: 28px; }
  .wave { margin-top: 40px; font-size: 30px; }
  section { margin-top: 72px; }
  .work a { grid-template-columns: 96px 1fr; gap: 16px; margin: 0 -14px; padding: 14px; border-radius: 14px; }
  .work a::after { right: 14px; bottom: 14px; }
  .work h3 { flex-direction: column; gap: 0; }
  .work p { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .case h1 { font-size: 32px; }
}

.case .chapters { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 12px; padding: 0; }
.case .chapters li { margin: 0; font-size: inherit; line-height: inherit; }
.case .chapters button { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; padding-top: 14px; font: 500 13px/1.4 var(--sans); color: var(--muted); cursor: pointer; transition: color .25s ease; }
.case .chapters button::before, .case .chapters button::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; border-radius: 2px; }
.case .chapters button::before { right: 0; background: color-mix(in srgb, var(--muted) 22%, var(--line)); }
.case .chapters button::after { width: calc(var(--p, 0) * 100%); background: var(--fg); }
.case .chapters button[data-state="past"] { color: var(--text); }
.case .chapters button[data-state="now"] { color: var(--fg); font-weight: 600; }
.case .chapters button:hover { color: var(--fg); }
.case .chapters button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
.case .chapter-text { display: block; min-height: 3em; font-size: 13px; color: var(--text); }
.case .chapter-text.swap { animation: chapter-in .45s ease both; }
@keyframes chapter-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .case .chapter-text.swap { animation: none; } }

.ph { margin: 32px 0; padding: 48px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font: 13px/1.5 var(--sans); text-align: center; }

.case figure.wide { width: min(1040px, calc(100vw - 48px)); }
.case figure.compact { width: auto; margin-left: 0; transform: none; }
.case figure.compact .pair { grid-template-columns: 1fr 1fr; }
.case figure .pair:has(.arrow) { grid-template-columns: 1fr 36px 1fr; gap: 0; align-items: center; }
.case figure .trio:has(.arrow) { grid-template-columns: 280fr 20px 390fr 390fr; align-items: center; }
.case figure :is(.pair, .trio) .arrow { justify-self: center; width: 20px; height: 20px; background: var(--muted); -webkit-mask: var(--arr-e) center / contain no-repeat; mask: var(--arr-e) center / contain no-repeat; }
.case figure a { display: block; cursor: zoom-in; }
.case figure .zoomable { cursor: zoom-in; }
.case figure :is(img, video).zoomable:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.case figure .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case figure .trio { display: grid; grid-template-columns: 280fr 390fr 390fr; gap: 12px; }
@media (max-width: 600px) { .case figure :is(.pair, .trio) { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .case figure, .case figure.wide { width: calc(100vw - 32px); } }
@media (max-width: 600px) { .case figure .trio:has(.arrow) { grid-template-columns: 1fr; } .case figure .trio .arrow { transform: rotate(90deg); } }

/* homepage hierarchy — variant A: strong section, quiet group */
.section-title { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 32px; }
.group + .group { margin-top: 64px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 14px; font: 500 16px/1.3 var(--sans); color: var(--fg); }
.group-head small { font: inherit; font-size: 15px; color: var(--muted); white-space: nowrap; }
.group-head:has(.logo) { align-items: center; }
.group-head > span:has(.logo) { display: inline-flex; align-items: center; gap: 8px; }
.group-head .logo { width: 20px; height: 20px; flex: none; }
@media (prefers-color-scheme: dark) { .group-head .logo[src$="quadient.svg"] { filter: invert(1); } }
#photos .group-head, #illustrations .group-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
#illustrations .grid { grid-template-columns: repeat(3, 1fr); }

.float-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 9px 14px;
  font: 500 14px/1 var(--sans);
  color: var(--fg);
  text-decoration: none;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.float-back:hover { color: var(--fg); border-color: var(--muted); }
@media (max-width: 600px) { .float-back { top: 16px; left: 12px; } }
@media (min-width: 900px) { .float-back { left: auto; right: calc(50% + 340px); } }
@media (min-width: 1100px) { body:has(.case figure) .float-back { right: calc(50% + 456px); } }
@media (min-width: 1280px) { body:has(figure.wide) .float-back { right: calc(50% + 536px); } }
.lightbox:focus { outline: none; }

/* about */
.case.about h1 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; }
.case.about .lede { font-size: 16px; line-height: 1.65; color: var(--text); margin-bottom: 12px; }
.case.about .cv-link { font-size: 15px; margin: 0 0 48px; }
.cv-link a { color: var(--fg); text-decoration-color: color-mix(in srgb, var(--muted) 35%, var(--line)); }
.cv-link a:hover { color: var(--muted); }
.cv-link small { font-size: 13px; color: var(--muted); margin-left: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 112px 1fr; gap: 24px; margin: 0; padding: 28px 0; border-top: 1px dashed var(--line); }
.timeline > li:last-child { border-bottom: 1px dashed var(--line); }
.timeline .when { font: 14px/1.7 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 1px; }
.case .timeline h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 17px; }
.timeline h3 small { margin-left: auto; font: 13px/1.6 var(--sans); font-weight: 400; color: var(--muted); }
.timeline .logo { width: 20px; height: 20px; flex: none; }
@media (prefers-color-scheme: dark) { .timeline .logo[src$="quadient.svg"] { filter: invert(1); } }
.case .roles { list-style: none; margin: 0 0 12px; padding: 0; }
.case .roles li { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg); }
.case .roles.detailed li + li { margin-top: 12px; }
.roles .desc { margin-top: 2px; color: var(--text); }
.roles small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 6px; }
.case .timeline p { font-size: 15px; line-height: 1.65; margin: 0 0 10px; }
.case .timeline p.cases { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.cases a { color: var(--fg); text-decoration-color: color-mix(in srgb, var(--muted) 35%, var(--line)); }
.cases a:hover { color: var(--muted); }
.about h2 { margin-top: 72px; }
.case .plain { list-style: none; padding: 0; margin: 0; }
.case .plain li { margin: 0 0 4px; }
.plain small { font-size: 14px; color: var(--muted); margin-left: 6px; }
@media (max-width: 600px) {
  .timeline > li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
}
@media (prefers-reduced-motion: reduce) { a.ext::after, .more span, .work a::after, .float-back::before, .lb-prev::before, .lb-next::before { transition: none; } }

.case code { font: .875em/1 ui-monospace, Menlo, monospace; padding: .2em .4em; border-radius: 4px; background: var(--hover); color: var(--fg); }
.case dl.cmds { margin: 24px 0; display: grid; gap: 14px; }
.case dl.cmds div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; }
.case dl.cmds dt { margin: 0; }
.case dl.cmds dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
@media (max-width: 600px) { .case dl.cmds div { grid-template-columns: 1fr; gap: 4px; } }

/* scroll reveal */
.reveal { opacity: 0; translate: 0 16px; }
.reveal.in { opacity: 1; translate: 0 0; transition: opacity .45s ease-out var(--d, 0ms), translate .6s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms); }
@media print { .reveal { opacity: 1; translate: none; } }
