/* The plain white search page, in its own type and colours. */
:root {
  --bg: #fff; --ink: #1d1d22; --muted: #5d5e66; --faint: #8a8b93; --line: #e3e3e8; --soft: #f4f4f6;
  --link: #2a3bc2; --visited: #6a3a9f; --url: #3f6b54;
  --c0: #e8590c; --c1: #7048e8; --c2: #0c8599; --c3: #d6336c; --c4: #d99a00;
  --ab-fg: var(--ink); --ab-muted: var(--muted); --ab-accent: var(--c1);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mark: "Fraunces", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); overflow-x: hidden; }
#app { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.view { flex: 1 0 auto; }
.view[hidden] { display: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

/* loading bar: the page's own progress line */
#loader { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; background: transparent; transition: opacity .4s ease; }
#loader i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c0), var(--c1), var(--c2), var(--c3), var(--c4)); transition: width .35s ease; }
#loader.gone { opacity: 0; pointer-events: none; }
body:not(.is-home) #loader { pointer-events: none; }
.fail { text-align: center; color: var(--muted); padding: 40px 16px; }

/* ---------------------------------------------------------------- home */
.home-main { display: flex; flex-direction: column; align-items: center; padding: max(56px, 9vh) 16px 40px; }
.doodle { display: block; width: min(900px, 100%); aspect-ratio: 1520 / 480; position: relative; border-radius: 18px; outline-offset: 6px; transform-origin: 50% 70%; }
.doodle img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.doodle img.in, .doodle img[src] { opacity: 1; }
.doodle.play { animation: bob 1.1s cubic-bezier(.3,.7,.3,1); }
@keyframes bob { 0% { transform: none; } 22% { transform: translateY(-6px) scale(1.018); } 46% { transform: translateY(1px) scale(.996); } 70% { transform: translateY(-2px) scale(1.004); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .doodle.play { animation: none; } }

.search { position: relative; width: min(640px, 100%); margin-top: 34px; }
.box { display: flex; align-items: center; height: 50px; border: 1px solid var(--line); border-radius: 25px; background: #fff; padding: 0 8px 0 18px; transition: box-shadow .15s ease, border-color .15s ease; }
.box:hover, .search:focus-within .box { box-shadow: 0 1px 7px rgba(30, 30, 50, .16); border-color: transparent; }
.search.open .box { border-radius: 25px 25px 0 0; box-shadow: 0 1px 7px rgba(30, 30, 50, .16); border-color: transparent; border-bottom-color: var(--line); }
.box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 16px var(--font); color: var(--ink); padding: 0 6px; }
.box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
svg.mag { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; }
.clear { flex: none; border: 0; background: none; width: 36px; height: 36px; border-radius: 18px; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.clear:hover { background: var(--soft); }
.clear[hidden] { display: none; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 50px; margin: 0; padding: 6px 0 12px; list-style: none; background: #fff; border-radius: 0 0 25px 25px; box-shadow: 0 7px 9px -3px rgba(30, 30, 50, .18); }
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; gap: 14px; padding: 6px 20px; cursor: pointer; font-size: 16px; color: var(--ink); line-height: 1.6; }
.suggest li svg.mag { width: 16px; height: 16px; }
.suggest li b { font-weight: 700; }
.suggest li:hover, .suggest li.on { background: var(--soft); }
.suggest li.sbtns { justify-content: center; gap: 12px; padding: 14px 20px 4px; cursor: default; flex-wrap: wrap; }
.suggest li.sbtns:hover { background: none; }
.buttons { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { height: 38px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--soft); background: var(--soft); color: #34343c; font-size: 14px; cursor: pointer; }
.btn:hover { border-color: #d5d5dc; box-shadow: 0 1px 1px rgba(0,0,0,.08); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }

/* ---------------------------------------------------------------- footer */
.foot { flex: none; background: var(--soft); color: var(--muted); font-size: 14px; }
.foot-where { padding: 14px 30px; border-bottom: 1px solid var(--line); }
.foot-where:empty { display: none; }
.foot-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding: 14px 18px; }
.foot-links a { color: var(--muted); margin: 0 12px; }

/* ---------------------------------------------------------------- results header */
.rhead { display: flex; align-items: center; gap: 28px; padding: 22px 28px 6px; }
.mini { flex: none; width: 168px; aspect-ratio: 1520 / 480; display: block; }
.mini img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rhead .search { margin: 0; width: min(690px, 100%); }
.rhead .box { height: 46px; padding: 0 4px 0 20px; }
.rhead .suggest { top: 46px; }
.go { border: 0; background: none; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; cursor: pointer; }
.go svg.mag { stroke: var(--c1); }
.go:hover { background: var(--soft); }
.tabs { display: flex; gap: 26px; padding: 6px 0 0 calc(28px + 168px + 28px + 2px); border-bottom: 1px solid var(--line); font-size: 14px; }
.tabs[hidden] { display: none; }
.tabs a { color: var(--muted); padding: 10px 2px 10px; border-bottom: 3px solid transparent; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { color: var(--c1); border-bottom-color: var(--c1); font-weight: 600; }
.page { padding: 18px 28px 40px calc(28px + 168px + 28px + 2px); }

/* ---------------------------------------------------------------- results list */
.cols { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 380px); gap: 64px; align-items: start; }
.cols.list { grid-template-columns: minmax(0, 720px); }
.main { min-width: 0; }
.dym { font-size: 18px; color: #c02b5a; margin: 0 0 22px; }
.dym a { color: var(--link); }
.none p { margin: 0 0 10px; font-size: 16px; }
.result { margin: 0 0 30px; }
.list .result { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 20px; align-items: start; }
.cite { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fav { width: 28px; height: 28px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font: 700 14px var(--mark); color: var(--c1); }
.site { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sname { font-size: 14px; color: var(--ink); }
.url { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result h3 { margin: 0 0 4px; font-size: 21px; font-weight: 500; line-height: 1.3; }
.result h3 a:visited { color: var(--visited); }
.snip { margin: 0; color: #46474f; font-size: 15px; line-height: 1.58; }
.snip b { color: var(--ink); }
.rthumb { display: block; border-radius: 10px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; margin-top: 30px; }
.rthumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.imgcard { display: block; color: var(--ink); }
.imgcard:hover { text-decoration: none; }
.imgbox { display: block; aspect-ratio: 16 / 9; background: var(--soft); border-radius: 10px; overflow: hidden; }
.imgbox img { width: 100%; height: 100%; object-fit: contain; display: block; }
.imgcap { display: flex; flex-direction: column; padding: 6px 2px; font-size: 13px; line-height: 1.35; }
.imgsite { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- a project's page */
.result.top h3 { font-size: 26px; }
.result.top .snip { font-size: 16.5px; color: var(--ink); max-width: 64ch; }
.pack { margin: 6px 0 36px; padding-top: 4px; scroll-margin-top: 12px; }
.pack > h2 { font-size: 21px; font-weight: 500; margin: 0 0 14px; }
.group { margin-bottom: 22px; scroll-margin-top: 12px; }
.gcap { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.kitbox.film .ab-landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kitbox.film .ab-landscape .ab-film:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.kitbox .ab-frame { border-radius: 12px; overflow: hidden; }
.kitbox .ab-portrait .ab-frame { border-radius: 14px; }
.kitbox figcaption { font-size: 13.5px; color: var(--ink); margin-top: 7px; }
.kitbox.pic .ab-image img { border-radius: 8px; }
.kitbox.pic .ab-image { background: var(--soft); border-radius: 12px; padding: 10px; }
.kitbox.snd .ab-audio { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.kitbox.snd figcaption { margin: 0 0 8px; font-weight: 600; }
.result.sec h3 { font-size: 19px; }
.result.sec h3 span { color: var(--ink); }

/* the panel */
.panel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; position: sticky; top: 16px; }
.pthumb { background: var(--soft); display: grid; place-items: center; }
.pthumb img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.pbody { padding: 16px 20px 20px; }
.pbody h2 { font-size: 26px; font-weight: 500; margin: 0; line-height: 1.2; }
.pclient { margin: 2px 0 12px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: #3c3d44; min-width: 0; overflow-wrap: anywhere; }
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.clab { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pdoodle { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pdoodle img { display: block; width: 100%; height: auto; }

/* tabs filter the page */
.proj[data-tab="videos"] .result, .proj[data-tab="videos"] .pack:not(.pack-videos), .proj[data-tab="videos"] .panel,
.proj[data-tab="images"] .result, .proj[data-tab="images"] .pack:not(.pack-images), .proj[data-tab="images"] .panel,
.proj[data-tab="videos"] .pager, .proj[data-tab="images"] .pager { display: none; }
.proj[data-tab="videos"], .proj[data-tab="images"] { grid-template-columns: minmax(0, 1000px); }

/* pager: Mike Hoooouston */
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 46px 0 10px; font-size: 14px; }
.pager .pv, .pager .nx { min-width: 80px; }
.pager .nx { text-align: right; }
.word { font: 700 34px/1 var(--mark); letter-spacing: -.01em; white-space: nowrap; }
.word .w1 { color: var(--c0); }
.word .w2 { color: var(--c2); }
.word .o { color: var(--c4); display: inline-block; padding: 0 1px; }
.word a.o:hover { color: var(--c1); text-decoration: none; transform: translateY(-2px); }
.word .o.on { color: var(--c3); }

/* the archive */
.archive { max-width: 1240px; }
.ahead { font-weight: 400; margin: 6px 0 24px; font-size: 34px; }
.wordmark { font: 700 1em/1 var(--mark); letter-spacing: -.01em; }
.wordmark .c0 { color: var(--c0); } .wordmark .c1 { color: var(--c1); } .wordmark .c2 { color: var(--c2); } .wordmark .c3 { color: var(--c3); } .wordmark .c4 { color: var(--c4); }
.asub { color: var(--muted); font: 400 .8em var(--font); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 26px; }
.card { display: flex; flex-direction: column; color: var(--ink); border-radius: 14px; }
.card:hover { text-decoration: none; }
.card:hover .cname { color: var(--link); }
.cdoodle { display: block; aspect-ratio: 1520 / 480; }
.cdoodle img { width: 100%; height: 100%; object-fit: contain; display: block; }
.creal { display: block; aspect-ratio: 16 / 9; background: var(--soft); border-radius: 10px; overflow: hidden; margin-top: 8px; }
.creal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cname { font-size: 16px; font-weight: 600; margin-top: 8px; }
.cclient { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* about */
.about { max-width: 720px; }
.person h1 { font-size: 44px; margin: 4px 0 6px; font-weight: 400; }
.ptitle { font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.pbio { font-size: 16px; color: #46474f; margin: 0 0 18px; max-width: 60ch; }
.person .facts { max-width: 520px; }
.exp { margin-top: 28px; }
.exp h2 { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
.exp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.exp p { margin: 2px 0 0; color: #46474f; font-size: 14.5px; }
.exp .co { color: var(--muted); }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1180px) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; }
}
@media (max-width: 980px) {
  .rhead { gap: 20px; padding: 18px 20px 4px; }
  .mini { width: 132px; }
  .tabs { padding-left: 20px; }
  .page { padding: 16px 20px 36px; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .panel { position: static; order: -1; margin-bottom: 26px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .pdoodle { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .home-main { padding-top: 64px; }
  .doodle { border-radius: 10px; }
  .search { margin-top: 26px; }
  .rhead { flex-direction: column; gap: 10px; padding: 12px 16px 2px; }
  .mini { width: 150px; }
  .rhead .search { width: 100%; }
  .tabs { padding-left: 16px; gap: 22px; overflow-x: auto; }
  .page { padding: 14px 16px 30px; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .pthumb img { max-height: 300px; }
  .list .result { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .rthumb { margin-top: 34px; border-radius: 8px; }
  .result h3 { font-size: 19px; }
  .result.top h3 { font-size: 23px; }
  .kitbox.film .ab-landscape { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .word { font-size: 26px; }
  .pager { gap: 8px; }
  .pager .pv, .pager .nx { min-width: 0; font-size: 13px; }
  .foot-where { padding: 12px 20px; }
  .foot-links { justify-content: center; }
  .person h1 { font-size: 34px; }
  .imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 640px) {
  .pager { flex-wrap: wrap; }
  .pager .word { order: -1; width: 100%; text-align: center; margin-bottom: 6px; }
  .pager .pv, .pager .nx { flex: 1; }
}
.also { margin: 6px 0 0; font-size: 14px; }
.also a { color: var(--link); }
.also .dot { color: var(--faint); }
.pbody h2 { margin-bottom: 12px; }
.doodle .glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; filter: blur(.6px) brightness(1.5); }

/* ---------------------------------------------------------------- the plain wordmark: a first visit, or no doodle up */
.plainmark { display: none; font: 500 1em/1 "Poppins", var(--font); letter-spacing: -.035em; white-space: nowrap; -webkit-user-select: none; user-select: none; }
.plainmark .pb { color: #4285F4; } .plainmark .pr { color: #EA4335; } .plainmark .py { color: #FBBC05; } .plainmark .pg { color: #34A853; }
.doodle.plain { width: auto; aspect-ratio: auto; font-size: 96px; padding: .04em .1em .12em; border-radius: 14px; }
.doodle.plain img, .doodle.plain .glow { display: none; }
.doodle.plain .plainmark { display: block; }
.doodle.plain:hover { text-decoration: none; }
body.is-plain .home-main { padding-top: max(72px, 19vh); }
body.is-plain .home-main .search { margin-top: 26px; }
.mini.plain img { display: none; }
.mini.plain .plainmark { display: flex; align-items: center; height: 100%; font-size: 34px; }
.mini.plain:hover { text-decoration: none; }
@media (max-width: 980px) { .mini.plain .plainmark { font-size: 28px; } }
@media (max-width: 640px) {
  .doodle.plain { font-size: 70px; }
  body.is-plain .home-main { padding-top: max(64px, 14vh); }
  .mini.plain { height: 40px; aspect-ratio: auto; }
  .mini.plain .plainmark { font-size: 30px; justify-content: center; }
}
