:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #d8d8d8;
  --line-dark: #bfbfbf;
  --ink: #252525;
  --muted: #7b7b7b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

.shell {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: var(--panel);
}

.topbar,
.bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 0;
  font-size: clamp(1.008rem, 1.26vw, 1.161rem);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.bottombar {
  border-bottom: none;
  border-top: 1px solid var(--line);
}

.brand {
  margin: 0;
}

.topbar nav {
  display: flex;
  gap: 1.3rem;
}

.topbar nav a {
  color: #000000;
}

.topbar a,
.back-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.topbar a:hover,
.back-link:hover {
  border-color: var(--line-dark);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5.6rem 0.7rem;
  padding: 3.6rem 0.7rem 1.15rem;
  align-items: end;
  grid-auto-flow: row;
}

.record {
  text-decoration: none;
  display: grid;
  gap: 0.1rem;
  color: var(--ink);
  align-self: end;
}

.record img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: 0;
}

.thumb-wrap {
  display: block;
  background: transparent;
  padding: 0;
  margin-bottom: 0.3rem;
}

.record-body {
  display: block;
  width: 100%;
  min-width: 0;
}

.record-meta,
.record-sub {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-title {
  display: block;
  font-size: 0.8rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-summary {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.28;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.record-tall {
  grid-row: auto;
}

.record-medium {
  grid-row: auto;
}

.record-wide {
  grid-column: span 1;
}

.record:hover .thumb-wrap {
  background: transparent;
}

.shell-project {
  background: #fdfdfd;
}

.project-shell {
  min-height: 82vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.media-stage {
  position: relative;
  min-height: 62vh;
  border-bottom: 1px solid var(--line);
  background: #fcfcfc;
  overflow-x: auto;
  overflow-y: hidden;
}

.media-lane {
  min-height: 62vh;
  display: flex;
  align-items: end;
  gap: 0.85rem;
  padding: 1rem;
}

.media-card {
  margin: 0;
  width: clamp(220px, 44vw, 760px);
  flex: 0 0 auto;
  border: 1px solid #e4e4e4;
  background: #efefef;
}

.media-card + .media-card {
  margin-left: 0;
}

.media-card.is-video {
  width: clamp(260px, 58vw, 980px);
  z-index: 2;
}

.media-card.is-audio {
  width: clamp(320px, 44vw, 560px);
}

.media-card:nth-child(2n) {
  transform: none;
}

.media-card:nth-child(3n) {
  transform: none;
}

.media-card img,
.media-card video,
.media-card iframe {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ededed;
  border: 0;
}

.media-card video,
.media-card iframe {
  height: clamp(260px, 58vh, 760px);
}

.media-card.is-audio iframe {
  height: 352px;
  object-fit: initial;
}

.media-external-link {
  margin: 0.5rem 0 0;
  font-size: 0.74rem;
}

.media-external-link a {
  color: inherit;
}

.media-lane-uniform .media-card img {
  height: clamp(260px, 58vh, 760px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.media-lane-crop .media-card,
.media-lane-crop .media-card.is-video {
  width: auto;
  height: clamp(260px, 58vh, 760px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  border: 0;
  background: transparent;
}

.media-lane-crop .media-card img,
.media-lane-crop .media-card video {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  margin: 0;
  background: transparent;
}

.media-lane-crop .media-card iframe {
  width: calc(clamp(260px, 58vh, 760px) * 1.7778);
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}

.media-lane-crop-short .media-card,
.media-lane-crop-short .media-card.is-video {
  height: clamp(198px, 41.4vh, 547px);
}

.media-lane-crop-short .media-card iframe {
  width: calc(clamp(198px, 41.4vh, 547px) * 1.7778);
}

.media-lane-crop .media-card.is-square-video iframe,
.media-lane-crop-short .media-card.is-square-video iframe {
  width: clamp(198px, 41.4vh, 547px);
}

.media-lane-crop .media-card.is-four-three-video iframe,
.media-lane-crop-short .media-card.is-four-three-video iframe {
  width: calc(clamp(198px, 41.4vh, 547px) * 1.3333);
}

.media-lane-crop .media-card.is-vertical-video iframe,
.media-lane-crop-short .media-card.is-vertical-video iframe {
  width: calc(clamp(198px, 41.4vh, 547px) * 0.5625);
}

.project-info-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.6fr 0.7fr;
}

.info-block {
  padding: 0.5rem 0.62rem 0.64rem;
  border-right: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.32;
}

.info-block:last-child {
  border-right: none;
}

.project-meta h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  line-height: 1.25;
}

.detail-code,
.detail-sub,
.detail-summary,
.detail-label {
  margin: 0 0 0.33rem;
}

.detail-code,
.detail-sub,
.detail-label {
  color: var(--muted);
  font-size: 0.73rem;
}

.detail-summary {
  max-width: 52ch;
  font-size: 0.79rem;
  white-space: pre-line;
}

.detail-list,
.caption-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.22rem;
}

.caption-list li {
  font-size: 0.74rem;
  color: var(--muted);
}

.project-links p {
  margin: 0 0 0.26rem;
}

.project-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.project-links a:hover {
  border-color: var(--line-dark);
}

.shell-about .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(20rem, 3fr);
  column-gap: clamp(0.8rem, 1.8vw, 1.6rem);
  row-gap: 2.4rem;
  align-items: start;
  padding: 2.7rem clamp(4.8rem, 13.2vw, 11.4rem) 3.6rem;
}

.selected-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(220px, 24vw) auto minmax(72px, 10vw);
  column-gap: 1.1rem;
  justify-content: center;
  padding: 4.2rem 1in 0.8rem;
  box-sizing: border-box;
  text-align: left;
}

.selected-kicker {
  grid-column: 2;
  width: min(960px, calc(100vw - 2in - 24rem));
  margin: 0 0 0.28rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.selected-note {
  grid-column: 2;
  width: min(960px, calc(100vw - 2in - 24rem));
  margin: 0;
  font-size: 0.76rem;
  color: var(--text);
}

.selected-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2rem clamp(2.4rem, 10vw, 7.2rem) 6rem;
  scroll-snap-type: none;
}

.selected-item {
  margin: 0;
  min-height: auto;
  display: grid;
  align-content: start;
  justify-items: center;
  row-gap: 0.9rem;
  padding-bottom: 0.2rem;
}

.selected-frame {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(220px, 24vw) auto minmax(72px, 10vw);
  column-gap: 1.1rem;
  justify-content: center;
  align-items: center;
  padding-left: 1in;
  padding-right: 1in;
}

.selected-link {
  display: block;
  text-decoration: none;
  width: auto;
  margin: 0 auto;
  grid-column: 2;
}

.selected-link img {
  display: block;
  width: min(960px, calc(100vw - 2in - 24rem));
  max-height: 72vh;
  margin: 0;
  height: auto;
  border: 0;
}

.selected-side {
  margin: 0;
  font-size: clamp(1.008rem, 1.26vw, 1.161rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: normal;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: anywhere;
}

.selected-side-left {
  grid-column: 1;
  justify-self: start;
  text-align: left;
  padding-right: 0.35rem;
}

.selected-side-right {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.selected-caption {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  width: 100%;
  min-height: 1.8em;
}

.about-column {
  min-width: 0;
}

.about-layout h1,
.about-layout h2,
.about-layout h3 {
  margin: 0;
  font-weight: 300;
}

.about-layout h2 {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.about-layout h3 {
  margin-bottom: 0.5rem;
  font-size: 0.69rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-layout p,
.about-layout li {
  margin: 0;
}

.about-name,
.about-role {
  margin: 0;
}

.about-name {
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

.about-role {
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: 1.35rem;
  max-width: 54rem;
}

.about-copy p {
  max-width: 72ch;
  font-size: 0.78rem;
  line-height: 1.66;
}

.about-contact {
  display: block;
  padding-top: 0.84in;
  font-size: 0.78rem;
  line-height: 1.66;
}

.cv-column {
  max-width: 31rem;
  justify-self: start;
}

.cv-column .about-name {
  margin-bottom: 0.08rem;
  font-size: 0.8rem;
}

.cv-column .about-role {
  margin-bottom: 1.2rem;
  font-size: 0.72rem;
  line-height: 1.45;
}

.cv-section + .cv-section {
  margin-top: 1.5rem;
}

.cv-section p {
  font-size: 0.75rem;
  line-height: 1.48;
  color: var(--ink);
}

@media (max-width: 1180px) {
  .index-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .selected-header {
    width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 1.2rem 1.2rem 0.8rem;
  }

  .selected-kicker,
  .selected-note {
    width: auto;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selected-grid {
    width: min(920px, 100%);
    padding: 1.2rem 1.2rem 3rem;
  }

  .selected-item {
    min-height: auto;
  }

  .selected-frame {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }

  .selected-side {
    display: none;
  }

  .selected-link img {
    width: min(920px, 100%);
    max-height: 64vh;
    margin-left: auto;
    margin-right: auto;
  }

  .media-card + .media-card {
    margin-left: 0;
  }

  .media-card img,
  .media-card video,
  .media-card iframe {
    height: auto;
  }

  .media-card video,
  .media-card iframe {
    height: clamp(220px, 48vh, 540px);
  }

  .project-info-row {
    grid-template-columns: 1fr 1fr;
  }

  .info-block {
    border-bottom: 1px solid var(--line);
  }

  .info-block:nth-child(2n) {
    border-right: none;
  }

  .project-links,
  .project-captions {
    border-bottom: none;
  }

  .shell-about .about-layout {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 2.4rem;
  }

  .about-copy p {
    max-width: 42ch;
  }
}

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

  .record-wide {
    grid-column: span 1;
  }

  .topbar,
  .bottombar {
    font-size: 0.7rem;
  }

  .project-info-row {
    grid-template-columns: 1fr;
  }

  .info-block {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .info-block:last-child {
    border-bottom: none;
  }

  .media-card + .media-card {
    margin-left: 0;
  }

  .shell-about .about-layout {
    row-gap: 2rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .about-copy {
    gap: 1.15rem;
  }

  .about-copy p {
    max-width: none;
    font-size: 0.76rem;
    line-height: 1.62;
  }

  .about-contact {
    padding-top: 2rem;
    font-size: 0.76rem;
    line-height: 1.62;
  }

  .cv-column .about-role {
    margin-bottom: 1rem;
  }

  .cv-section + .cv-section {
    margin-top: 1.3rem;
  }
}

.media-card-linkout {
  display: grid;
}

.media-linkout-anchor {
  display: grid;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.media-linkout-label {
  font-size: 0.74rem;
}
