:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f0f0f;
  --muted: #666666;
  --line: #111111;
  --line-soft: #dcdcdc;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-transform: lowercase;
}

body {
  margin: 0;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  padding: 16px 28px 48px;
}

.site-header,
.page-section {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 8px 0 18px;
}

.header-string-wrap {
  grid-column: 1 / -1;
  width: 100%;
  height: 18px;
  margin-top: -8px;
  margin-bottom: -10px;
  cursor: default;
  transition: opacity 120ms ease;
}

.site-brand {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a,
.eyebrow,
.meta,
.label-inline,
.event-status,
.card-hint {
  font-family: "IBM Plex Mono", monospace;
}

.site-nav a {
  padding: 0.1rem 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--line);
}

.page-section {
  background: var(--surface);
  margin-top: 24px;
  padding: 0;
}

.works-page {
  margin-top: 20px;
}

.eyebrow,
.meta,
.label-inline,
.event-status,
.card-hint {
  text-transform: lowercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: start;
}

.card {
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    filter 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover img,
.card:focus-within img,
.card[open] img {
  filter: grayscale(0%);
}

.card:not([open]):hover img {
  transform: scale(1.012);
}

.card-copy {
  padding: 10px 0 0;
}

.card-copy h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 500;
  text-transform: lowercase;
}

.material-line {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  text-transform: lowercase;
}

.card-work-expandable {
  grid-column: span 1;
  scroll-margin-top: 16px;
}

.card-work-expandable[open] {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 4px;
}

.card-trigger {
  list-style: none;
  cursor: pointer;
}

.card-trigger::-webkit-details-marker {
  display: none;
}

.card-work-expandable[open] > .card-trigger {
  max-width: 44rem;
}

.card-work-expandable[open] > .card-trigger img {
  aspect-ratio: auto;
  max-height: 30rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.work-expanded {
  display: grid;
  grid-template-columns: minmax(0, 44rem) minmax(16rem, 22rem);
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0 4px;
  animation: workReveal 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes workReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-expanded-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.work-description {
  display: grid;
  gap: 12px;
  max-width: 44rem;
}

.work-description p,
.work-expanded-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  text-transform: lowercase;
}

.work-description a,
.work-expanded-copy a,
.meta-list a,
.prose-card a,
.about-copy a,
.archive-entry a {
  text-decoration: underline;
  text-decoration-color: #b5b5b5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.work-description a:hover,
.work-expanded-copy a:hover,
.meta-list a:hover,
.prose-card a:hover,
.about-copy a:hover,
.archive-entry a:hover {
  text-decoration-color: var(--text);
}

.work-video {
  margin-top: 8px;
}

.work-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #f5f5f5;
}

.work-gallery {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.gallery-item {
  margin: 0;
}

.work-gallery img {
  width: auto;
  max-width: 100%;
  max-height: 36rem;
  aspect-ratio: auto;
  object-fit: contain;
  filter: grayscale(0%);
}

.work-expanded-meta {
  display: grid;
  gap: 18px;
  align-content: start;
}

.work-meta-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

.work-meta-block p {
  margin: 0;
  text-transform: lowercase;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.meta-list li,
.meta-list a {
  text-transform: lowercase;
}

.share-link {
  cursor: pointer;
}

.about-dates-page {
  margin-top: 20px;
}

.about-dates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: 56px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 28px;
  max-width: 44rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.about-bio {
  display: grid;
  gap: 16px;
}

.about-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.62;
  font-size: 0.95rem;
  text-transform: lowercase;
}

.cv-block,
.dates-history {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 0;
}

.cv-block h2,
.archive-section h2,
.about-fold-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 500;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: lowercase;
}

.about-fold-summary {
  list-style: none;
  margin: 0 0 18px;
  pointer-events: none;
  cursor: default;
}

.about-fold-summary::-webkit-details-marker {
  display: none;
}

.about-fold-toggle,
.about-fold-close {
  display: none;
}

.about-fold-body {
  display: grid;
  gap: 16px;
}

.dates-fold-summary {
  display: none;
}

.dates-fold-body {
  display: grid;
  gap: 28px;
}

.cv-list {
  display: grid;
  gap: 16px;
}

.cv-row,
.archive-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.cv-row + .cv-row {
  border-top: 1px solid #efefef;
  padding-top: 14px;
}

.cv-entries {
  display: grid;
  gap: 10px;
}

.cv-row p,
.archive-row p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.52;
}

.cv-year,
.archive-year,
.archive-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
}

.dates-column {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 28px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  padding-right: 10px;
}

.dates-history {
  margin-top: 0;
}

.archive-section {
  display: grid;
  gap: 16px;
}

.archive-group {
  display: grid;
  gap: 8px;
}

.archive-list {
  display: grid;
  gap: 8px;
}

.archive-entry {
  display: grid;
  gap: 2px;
}

.archive-entry a,
.archive-entry span {
  font-size: 0.92rem;
  line-height: 1.45;
  text-transform: lowercase;
}

.archive-entry p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
  text-transform: lowercase;
}

.dates-column::-webkit-scrollbar {
  width: 6px;
}

.dates-column::-webkit-scrollbar-thumb {
  background: #d0d0d0;
}

.prose-section {
  width: min(var(--max-width), 100%);
  margin: 20px auto 0;
}

.prose-card {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.prose-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.label-inline {
  display: inline-block;
  min-width: 6rem;
  color: var(--muted);
}

.hidden-page {
  margin: 0;
  width: 100%;
}

.site-shell-minimal {
  min-height: 100dvh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.minimal-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden-page-minimal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden-page-with-header {
  min-height: calc(100dvh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden-page-container {
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}

.hidden-page-title {
  margin: 0 0 2px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  width: 100%;
  max-width: 38rem;
  text-align: left;
}

.hidden-page-body {
  display: grid;
  gap: 14px;
  max-width: 38rem;
  width: 100%;
  text-align: left;
  text-transform: none;
}

.hidden-page-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  text-transform: none;
}

.hidden-page-body a,
.hidden-page-downloads a {
  text-decoration: underline;
  text-decoration-color: #b5b5b5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.hidden-page-body a:hover,
.hidden-page-downloads a:hover {
  text-decoration-color: var(--text);
}

.hidden-page-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hidden-page-video video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 56rem);
  max-height: 86dvh;
  margin: 0 auto;
  background: transparent;
  border: 0;
  outline: none;
  pointer-events: none;
}

.hidden-page-embed {
  width: min(92vw, 52rem);
}

.hidden-page-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: transparent;
  pointer-events: none;
}

.hidden-page-audio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  text-transform: lowercase;
  text-decoration: underline;
  text-decoration-color: #b5b5b5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  transition: text-decoration-color 140ms ease, color 140ms ease;
}

.sound-trigger:hover {
  text-decoration-color: var(--text);
}

.hidden-page-downloads {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  text-align: center;
}

.hidden-page-downloads li {
  font-size: 0.98rem;
  line-height: 1.5;
  text-transform: lowercase;
}

.tension-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: default;
  transition: background-color 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tension-overlay.is-docking {
  background-color: rgba(255, 255, 255, 0);
  pointer-events: none;
}

.tension-overlay.is-hidden {
  display: none;
}

.tension-line-mover {
  position: relative;
  width: min(86vw, 980px);
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.tension-svg {
  width: 100%;
  height: 220px;
  overflow: visible;
  display: block;
}

.tension-caption {
  position: absolute;
  top: calc(100% + 56px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: lowercase;
  transition: opacity 320ms ease;
}

.site-footer {
  width: min(var(--max-width), 100%);
  margin: 56px auto 0;
  padding-top: 8px;
}

.footer-string-wrap {
  width: 100%;
  height: 28px;
  cursor: default;
  display: flex;
  align-items: center;
}

.footer-string-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.footer-tension-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-tension-trigger:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-expanded,
  .about-dates-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-copy {
    gap: 0;
    max-width: 100%;
  }

  .about-bio {
    padding-bottom: 20px;
  }

  .dates-column {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-top: 0;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .cv-block {
    padding-top: 0;
  }

  .dates-history {
    padding-top: 16px;
    margin-top: 8px;
  }

  .about-fold {
    scroll-margin-top: 6px;
  }

  .about-fold-summary,
  .dates-fold-summary {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    margin: 0;
    user-select: none;
  }

  .about-fold[open] > .about-fold-summary {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
  }

  .about-fold[open] > .about-fold-summary .about-fold-title {
    color: var(--text);
  }

  .about-fold-toggle {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    color: var(--muted);
    flex-shrink: 0;
  }

  .about-fold-toggle::before {
    content: "+";
  }

  .about-fold[open] > .about-fold-summary .about-fold-toggle {
    color: var(--text);
  }

  .about-fold[open] > .about-fold-summary .about-fold-toggle::before {
    content: "close −";
  }

  .about-fold-body {
    padding: 2px 0 20px;
    animation: workReveal 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .about-fold-close {
    display: inline-flex;
    justify-self: start;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 8px 0 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: lowercase;
    text-decoration: underline;
    text-decoration-color: #b5b5b5;
    text-underline-offset: 0.22em;
    cursor: pointer;
  }

  .about-fold-close:hover {
    color: var(--text);
    text-decoration-color: var(--text);
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 14px 16px 36px;
  }

  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding-bottom: 12px;
  }

  .site-nav {
    gap: 14px;
    width: 100%;
    justify-content: space-between;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-work-expandable[open] {
    grid-column: span 1;
    padding-bottom: 22px;
  }

  .work-expanded {
    gap: 22px;
    padding-top: 14px;
  }

  .cv-row,
  .archive-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .hidden-page-title {
    font-size: 1.3rem;
  }

  .hidden-page-body p {
    font-size: 0.92rem;
  }
}
