:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  font-size: calc(clamp(1200px, 100vw, 1440px) / 1440);
  color-scheme: dark;
  --ground: #000;
  --text: #fff;
  --muted: #8f8f8f;
  --boundary: #8f8f8f;
  --bar: #1c1c1c;
  --hover: #454545;
  --empty: #1a1a1a;
  --margin: 20rem;
  --gutter: 10rem;
  --ui-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--ui-size)/1.4 "Host Grotesk", sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
p, h1, h2, ol, ul, dl, dd { margin: 0; }
h1, h2 { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { border: 0; padding: 0; background: none; cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }
section:focus, main:focus { outline: none; }
button:disabled { cursor: wait; color: var(--muted); }
::selection { background: #fff; color: #000; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 74rem; left: var(--margin); padding: 10rem; background: var(--bar); z-index: 4; }
.grid-eight { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gutter); }
.serial, .year, time { font-family: "Fragment Mono", monospace; font-weight: 400; }
.site-header { position: relative; z-index: 2; }
.navigation, .local-time { position: fixed; top: 20rem; background: var(--bar); border-radius: 8rem; text-transform: uppercase; letter-spacing: .02em; }
.navigation { left: var(--margin); display: flex; padding: 3rem; isolation: isolate; }
.navigation a { position: relative; padding: 8rem 18rem; color: var(--muted); transition: color 150ms ease; }
.navigation a:focus-visible, .navigation a[aria-current] { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .navigation a:hover { color: #fff; }
}

.navigation:not(.has-canvas) a[aria-current] { background: #000; border-radius: 7rem; }
.nav-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.local-time { right: var(--margin); padding: 11rem 16rem; display: flex; gap: 12rem; }
.local-time time { font-family: inherit; font-variant-numeric: tabular-nums; }
.view { display: none; }
html:not(.is-ready) #index { display: block; }
#home { display: grid; min-height: 100svh; place-items: center; padding: 120rem var(--margin); }
html:not(.is-ready) body:has(#log:target, #information:target, .post-result:target) #index { display: none; }
.view:target, #information:has(.post-result:target) { display: block; }
.is-ready .view, .is-ready #home { display: none; }
.is-ready .view.is-active { display: block; }
.is-ready #home.is-active { display: grid; }
.home-content { text-align: center; }
.home-introduction { text-transform: uppercase; letter-spacing: .02em; line-height: 1.45; }
.home-media { display: flex; justify-content: center; gap: 10rem; margin-top: 28rem; }
.home-media video { display: block; width: 200rem; height: 200rem; max-width: calc((100vw - 2 * var(--margin) - 10rem) / 2); object-fit: cover; background: var(--empty); }
.content-view { padding: 224rem var(--margin) 80rem; min-height: 100svh; }
.index-controls { text-transform: uppercase; letter-spacing: .02em; align-items: start; }
.tags-label { grid-column: 1; }
.tag-list { grid-column: 2 / 4; display: flex; flex-direction: column; align-items: flex-start; }
.tag-list button { display: flex; align-items: center; min-height: 24px; color: var(--muted); text-transform: inherit; letter-spacing: inherit; transition: color 150ms ease; }
.tag-list button:focus-visible, .tag-list button[aria-pressed="true"] { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .tag-list button:hover { color: #fff; }
}

.tag-cursor { width: 7px; height: 10px; margin-left: 8rem; background: #fff; visibility: hidden; }
[aria-pressed="true"] .tag-cursor { visibility: visible; }
.tag-cursor.is-blinking { animation: cursor-blink .5s steps(1, end) 4; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.view-control { grid-column: 7 / 9; display: flex; align-items: center; justify-content: space-between; gap: 20rem; }
.view-slider { position: relative; width: 110rem; height: 24px; }
.slider-line { position: absolute; top: calc(50% - .5px); left: 4px; right: 4px; height: 1px; background: #fff; }
.slider-thumb { position: absolute; top: calc(50% - 4px); left: 0; width: 8px; height: 8px; background: #fff; pointer-events: none; }
.view-slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.view-slider:has(:focus-visible) { outline: 1px solid #fff; outline-offset: 5px; }
.work-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 20rem; row-gap: 36rem; margin-top: 96rem; position: relative; }
.work-grid[data-layout="medium"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid[data-layout="large"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-item { display: block; min-width: 0; }
.work-item.is-filtered { display: none; }
.project-media { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--empty); }
.project-media img, .project-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-top img { object-position: top; }
.icon-tile { display: grid; place-items: center; background: #111; }
.icon-tile img { width: 60%; height: 60%; object-fit: contain; }
.text-tile { padding: 16rem; display: flex; flex-direction: column; justify-content: space-between; text-transform: uppercase; letter-spacing: .02em; }
.item-caption { display: flex; align-items: baseline; gap: 12rem; margin-top: 12rem; white-space: nowrap; }
.item-caption .serial { flex-shrink: 0; font-size: 12px; }
.item-title { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; transition: color 150ms ease; }
.work-item:focus-visible .item-title { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .work-item:hover .item-title { color: #fff; }
}

#log-heading { font: 400 56rem/1 "Instrument Serif", serif; font-size: min(56rem, 56px); margin-bottom: 64rem; }
.log-year { padding-block: 44rem; border-top: 1px solid #2a2a2a; }
.log-year:first-of-type { border-top: 0; padding-top: 0; }
.log-year > .year { grid-column: 1 / 3; color: var(--muted); }
.log-entries { grid-column: 5 / 9; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 34rem; }
.entry-title, .entry-meta { display: block; }
.entry-title { font-size: 15px; line-height: 1.5; max-width: 650rem; text-wrap: pretty; }
.entry-meta { margin-top: 7rem; color: var(--muted); }
.log-entries a:focus-visible .entry-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .log-entries a:hover .entry-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}

.elsewhere { text-transform: uppercase; letter-spacing: .02em; }
.biography { font-size: 17px; line-height: 1.5; }
.biography { grid-column: 1 / 4; padding-right: 80rem; }
.biography p + p { margin-top: 22rem; }
.contact { grid-column: 4 / 7; padding-right: 80rem; }
.reading { grid-column: 7 / 9; }
.reading ul { list-style: none; padding: 0; margin-top: 32rem; }
.reading li { margin-bottom: 4rem; }
#contact-form { margin-top: 32rem; }
.form-field { margin-bottom: 22rem; }
.form-field label { display: block; color: var(--muted); }
input:not([type="range"]), textarea { display: block; width: 100%; padding: 7rem 0; border: 0; border-bottom: 1px solid var(--boundary); border-radius: 0; background: #000; line-height: 1.5; resize: vertical; }
input:not([type="range"]):focus, textarea:focus { border-color: #fff; outline: none; }
.bar-button { display: inline-block; padding: 10rem 18rem; border-radius: 8rem; background: var(--bar); text-transform: uppercase; letter-spacing: .02em; transition: color 150ms ease, transform 160ms var(--ease-out); }
.bar-button:focus-visible { background: var(--hover); }
@media (hover: hover) and (pointer: fine) {
  .bar-button:hover { background: var(--hover); }
}

.social-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 28rem; gap: 3rem; }
@media (hover: hover) and (pointer: fine) {
  .social-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

.field-error { margin-top: 8rem; }
#form-feedback, .post-result { margin-top: 32rem; overflow-wrap: anywhere; }
.post-result { display: none; scroll-margin-top: 100rem; }
.post-result:target { display: block; }
.contact:has(#contact-sent:target) #contact-form { display: none; }
.elsewhere { margin-top: 96rem; }
.elsewhere-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 24rem; }
.elsewhere-links > a { min-height: 70rem; border: 1px solid var(--boundary); padding: 10rem; transition: color 150ms ease; }
.elsewhere-links > a:focus-visible { border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .elsewhere-links > a:hover { border-color: #fff; }
}

.elsewhere-links > a > span { display: block; }
.elsewhere-links > a > span + span { color: var(--muted); margin-top: 3rem; }
.guide { position: fixed; right: 28rem; bottom: 18rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); pointer-events: none; }
#item-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 88rem var(--margin) 48rem; border: 0; background: rgba(1, 1, 1, .8); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); color: #fff; overflow: auto; }
#item-dialog::backdrop { background: transparent; }
#item-dialog[open] { display: grid; align-items: center; opacity: 1; transition: opacity 200ms ease; }
@starting-style { #item-dialog[open] { opacity: 0; } }
.close-detail { position: fixed; right: var(--margin); top: 20rem; z-index: 1; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 60rem; align-items: center; width: min(100%, 1160rem); margin-inline: auto; }
#detail-media { min-width: 0; }
#detail-media .project-media { max-width: min(100%, 72dvh); margin-inline: auto; }
.detail-information { max-width: 310rem; }
#item-title { text-transform: uppercase; letter-spacing: .02em; margin-bottom: 32rem; }
.detail-facts { text-transform: uppercase; letter-spacing: .02em; }
.detail-facts > div { display: grid; grid-template-columns: 80rem 1fr; gap: 10rem; margin-bottom: 6rem; }
.detail-facts dt { color: var(--muted); }
#item-description { margin-top: 32rem; line-height: 1.6; }
#item-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24rem; }
@media (min-width: 480px) and (max-width: 800px) {
  .biography, .contact { padding-right: 20rem; }
  .item-caption { gap: 6rem; }
  .work-grid { column-gap: 10rem; }
  .detail-layout { gap: 30rem; }
}
@media (max-width: 479px) {
  :root { font-size: calc(100vw / 380); --ui-size: 15px; }
  .navigation a { padding: 9rem 12rem; }
  .navigation .nav-mark { padding-inline: 12rem; }
  .local-time { display: none; }
  .home-content { width: 100%; }
  .home-introduction { font-size: 12px; letter-spacing: 0; }
  .home-introduction br { display: none; }
  .home-media video { width: calc((100vw - 2 * var(--margin) - 10rem) / 2); height: auto; aspect-ratio: 1; }
  .content-view { padding-top: 112px; }
  .tags-label { grid-column: 1 / 3; }
  .tag-list { grid-column: 3 / 7; }
  .tag-list button { min-height: 27rem; }
  .view-control { display: none; }
  .work-grid, .work-grid[data-layout] { grid-template-columns: minmax(0, 1fr); gap: 28rem 10rem; margin-top: 56rem; }
  .item-caption { gap: 6rem; margin-top: 9rem; }
  .text-tile { padding: 12rem; }
  .text-tile > span:last-child { max-width: 130rem; font-size: 12px; }
  .log-year { display: block; padding-block: 32rem; }
  .log-year > .year { margin-bottom: 28rem; }
  .log-entries { gap: 30rem; }
  .information-grid { display: block; }
  .biography, .contact { padding-right: 0; }
  .contact, .reading { margin-top: 52rem; }
  .elsewhere { margin-top: 60rem; }
  .elsewhere-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elsewhere-links > a { min-height: 90rem; }
  .guide { right: var(--margin); bottom: 14rem; font-size: 12px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28rem; }
  #detail-media .project-media { max-width: min(100%, 48dvh); }
  .detail-information { max-width: none; }
  #item-title, #item-description { margin-block: 0 20rem; }
  #item-description { margin-top: 20rem; }
  #item-link { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: opacity 200ms ease, color 150ms ease !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}

#detail-media .project-media img, #detail-media .project-media video { object-fit: contain; background: #000; }

.nav-mark { position: relative; z-index: 1; display: flex; align-items: center; align-self: stretch; padding: 0 16rem; color: #fff; font-weight: 500; line-height: 1; }
.intro { margin: -112rem 0 112rem; }
.intro span { grid-column: 2 / 6; color: #fff; font-size: 15px; line-height: 1.45; }
@media only screen and (max-width: 479px) { .intro { margin: 0 0 60rem; } .intro span { grid-column: 1 / -1; } }

.lab-list, .reading-list { margin-top: 160rem; }
.list-head { margin-bottom: 44rem; text-transform: uppercase; letter-spacing: .02em; }
.list-head h2 { grid-column: 1 / 3; font-weight: 400; }
.list-head p { grid-column: 3 / 9; color: var(--muted); }
.lab-list .log-entries, .reading-list .log-entries { grid-column: 3 / 9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
@media only screen and (max-width: 479px) { .list-head p { grid-column: 1 / -1; } .lab-list .log-entries, .reading-list .log-entries { grid-template-columns: 1fr; } }

.media-contain { background: #1a1a1a; }
.media-contain img { object-fit: contain !important; }

/* Readable controls and navigation, including the journal destination. */
.navigation { max-width: calc(100% - 2 * var(--margin)); font-size: 12px; }
.navigation a { display: flex; align-items: center; justify-content: center; min-width: 24px; min-height: 32px; }
.tag-list button, .social-links a, #item-link { min-height: 24px; }
.item-caption { white-space: normal; align-items: flex-start; }
.item-title { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.home-introduction, .text-tile > span:last-child { font-size: 15px; }
.guide { background: var(--ground); padding: 4px; font-size: 12px; }
.earlier-list { margin-top: 120rem; }
.earlier-list .log-entries { grid-column: 3 / 9; }
@media (max-width: 760px) { .local-time { top: 70px; font-size: 12px; } }
@media (max-width: 479px) {
  .navigation { width: calc(100% - 2 * var(--margin)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .navigation::-webkit-scrollbar { display: none; }
  .navigation a { flex: 0 0 auto; min-height: 44px; padding: 8px 10px; white-space: nowrap; }
  .navigation .nav-mark { flex-shrink: 0; padding-inline: 10px; }
  .navigation .nav-canvas { display: none; }
  .navigation.has-canvas a[aria-current] { background: #000; border-radius: 7rem; }
  .navigation a:focus-visible { outline-offset: -3px; }
  .list-head h2 { grid-column: 1 / -1; }
  .project-media.automation-surface { aspect-ratio: auto; min-height: 300px; }
  .home-introduction { font-size: 15px; }
}

@media (hover: none) { .guide { display: none; } }

@media (min-width: 480px) and (max-width: 1000px) {
  .work-grid[data-layout="small"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Touch targets (WCAG 2.5.8): inline links in lists and metadata get at least a 24px hit area. */
@media (hover: none) {
  main a:not(.work-item):not(.bar-button), footer a { display: inline-block; min-height: 24px; padding-block: 2px; }
}

.bio-label { font-size: inherit; font-weight: 400; margin: 0 0 12rem; text-transform: uppercase; letter-spacing: .02em; }
/* Sentences are never set in capitals. Only short labels (nav, tags, [ headings ]) stay uppercase. */
p, li, dd, blockquote, .entry-title, .entry-meta, .list-head p, .biography p, .contact p, .post-result, .field-error, #form-feedback { text-transform: none; letter-spacing: normal; }
.guide, .elsewhere a span + span { text-transform: none; letter-spacing: normal; }

/* Shared motion: progressive enhancement, with layout and typography unchanged. */
.tag-list button, .flow-controls button, .close-detail, .automation-setup { transition: color 150ms ease, transform 160ms var(--ease-out); }
.bar-button:active, .tag-list button:active, .flow-controls button:not([aria-disabled="true"]):active, .close-detail:active, .automation-setup:active { transform: scale(.97); }
.work-item .project-media { transition: transform 160ms var(--ease-out); }
.work-item:active .project-media { transform: scale(.985); }
.entry-title, .social-links a { transition: color 150ms ease; }
.js .project-media :is(img, video) { transition: opacity 240ms ease; }
.js .project-media .is-loading { opacity: 0; }
.js .project-media .is-loaded { opacity: 1; }
.scroll-reveal { opacity: 1; transform: translateY(0); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js .is-reveal-pending { opacity: 0; transform: translateY(8px); }
.contact-result.is-crossfading { display: grid; }
.contact-result.is-crossfading > * { grid-area: 1 / 1; align-self: start; }
.contact-result.is-crossfading #contact-form { pointer-events: none; }

/* Every rebuilt page includes this sheet; unsupported browsers navigate normally. */
@view-transition { navigation: auto; }
html[data-transition-view="index"] #home { display: none; }
html[data-transition-view="index"] #index { display: block; }
.navigation { view-transition-name: site-nav; }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: var(--ease-out); }
::view-transition-old(*), ::view-transition-new(*) { animation-duration: 180ms; animation-timing-function: ease; }
::view-transition-group(root) { animation-duration: 180ms; animation-timing-function: ease; }
::view-transition-group(site-nav), ::view-transition-new(site-nav) { animation: none; }
::view-transition-old(site-nav) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bar-button:active, .tag-list button:active, .flow-controls button:active, .close-detail:active, .work-item:active .project-media, .scroll-reveal, .js .is-reveal-pending { transform: none !important; }
  ::view-transition-group(*) { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}
/* Keyboard actions are immediate, including changes initiated with Enter/Space. */
html[data-input="keyboard"] :is(.bar-button, .tag-list button, .flow-controls button, .close-detail, .automation-setup, .project-media, .scroll-reveal, #item-dialog) { transition-duration: 0ms !important; }
html[data-input="keyboard"] :is(button, a):active, html[data-input="keyboard"] .work-item:active .project-media { transform: none !important; }

/* 404 */
.not-found { min-height: 100svh; padding: 120rem var(--margin) 80rem; align-content: center; align-items: center; row-gap: 64rem; }
.not-found-main { grid-column: 1 / 5; }
.not-found-number { font-size: 200rem; line-height: .85; letter-spacing: -.04em; color: #262626; margin-bottom: 24rem; }
.not-found h1 { font-size: 28rem; line-height: 1.2; margin-bottom: 8rem; }
.not-found-text { color: var(--muted); margin-bottom: 24rem; }
.not-found-list { grid-column: 5 / 9; }
.not-found-list h2 { color: var(--muted); margin-bottom: 12rem; text-transform: uppercase; letter-spacing: .02em; }
.not-found-list ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #333; }
main.not-found .not-found-list a { display: grid; grid-template-columns: 150rem 1fr auto; gap: 10rem; padding: 14rem 0; border-top: 1px solid #333; }
.not-found-list a span:nth-child(2) { color: var(--muted); transition: color 150ms ease; }
.not-found-list a span:last-child { transition: transform 160ms var(--ease-out); }
.not-found-list a:focus-visible span:nth-child(2) { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .not-found-list a:hover span:nth-child(2) { color: #fff; }
  .not-found-list a:hover span:last-child { transform: translateX(3px); }
}
@media (max-width: 760px) {
  .not-found { align-content: start; padding-top: 140px; }
  .not-found-main, .not-found-list { grid-column: 1 / -1; }
  .not-found-number { font-size: 120px; }
  main.not-found .not-found-list a { grid-template-columns: 110px 1fr auto; min-height: 44px; align-items: center; }
}
